ACSL Mock Contest A1-2223 Question 5 WDTPD?

Run Settings
LanguagePython
Language Version
Run Command
import math ans = 0 s = 0 a = int(input()) b = int(input()) c = int(input()) if a ** 2 + b ** 2 == c ** 2: ans = (a * b) / 2 else: s = (a + b + c) / 2 ans = math.sqrt(s * (s - a) * (s - b) * (s - c)) print(int(ans))
Editor Settings
Theme
Key bindings
Full width
Lines