Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94098 丁俊杰 11判断三角形 Python3 Accepted 37 MS 3772 KB 423 2024-10-19 19:06:27

Tests(10/10):


Code:

a,b,c=map(int,input().split()) zuida=max(a,b,c) if a+b+c-zuida>zuida: #能构成三角形 if a==b==c: print("Equilateral Triangle") elif a==b or a==c or b==c: print("Isosceles Triangle") elif a**2+b**2==c**2 or a**2+c**2==b**2 or b**2+c**2==a**2: print("Right Triangle") else: print("Simple Triangle") else: #不能构成三角形 print("No")