Run ID:68357
提交时间:2024-03-23 10:48:52
t=input() while t!=0: a,b,c=input().split() if a**2 + b**2 == c**2 or a**2 + c**2 == b**2 or c**2 + b**2 == b**2: print("good") elif a==b or a==c or b==c: print("perfect") else: print("just a triangle")