Run ID:116773
提交时间:2025-04-12 14:15:54
t=int(input()) for i in range(t): a,b,c = map(int,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")