Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93699 丁俊杰 判断三角形形状 Python3 Accepted 48 MS 3756 KB 265 2024-10-19 09:13:56

Tests(1/1):


Code:

n=int(input()) for i in range(n): a,b,c=map(int,input().split()) if a**2+b**2==c**2 or a**2+c**2==b**2 or b**2+c**2==a**2: print("good") elif a==b or a==c or b==c: print("perfect") else: print("just a triangle")