/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 15ms 3.008 MiB
#2 Wrong Answer 15ms 3.086 MiB

Code

base = int(input("enter base: "))
height = int(input("enter height: "))
hypothenuse = int(input("enter hypothenuse: "))

if hypothenuse**2 == (height**2 + base**2): 
    perimeter = base + height + hypothenuse
    print(perimeter)            
else:
    print("-1")

Information

Submit By
Type
Submission
Problem
P1027 Right triangle
Contest
Brain booster #2
Language
Python 3 (Python 3.12.3)
Submit At
2024-03-06 15:31:04
Judged At
2024-11-11 03:41:37
Judged By
Score
0
Total Time
15ms
Peak Memory
3.086 MiB