Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68048 金浩 11判断三角形 Python3 Accepted 34 MS 3784 KB 323 2024-03-18 19:29:54

Tests(10/10):


Code:

a,b,c=map(int,input().split()) if a+b<=c or a+c<=b or b+c<=a: print("No") elif a==b and b==c: print("Equilateral Triangle") elif a==b or b==c or a==c: print("Isosceles Triangle") elif a**2==b**2+c**2 or b**2==a**2+c**2 or c**2==b**2+a**2: print("Right Triangle") else: print("Simple Triangle")