Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68367 冯潇阳 判断三角形形状 Python3 Accepted 32 MS 3776 KB 313 2024-03-23 10:55:17

Tests(1/1):


Code:

t=input() t=int(t) while t!=0: a,b,c=input().split() a=int(a) b=int(b) c=int(c) if a**2 + b**2 == c**2 or a**2 + c**2 == b**2 or c**2 + b**2 == a**2: print("good") elif a==b or a==c or b==c: print("perfect") else: print("just a triangle") t=t-1