Run ID:68360

提交时间:2024-03-23 10:49:53

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 == a**2: print("good") elif a==b or a==c or b==c: print("perfect") else: print("just a triangle") t=t-1