Run ID:86823
提交时间:2024-07-28 12:05:12
t = int(input()) for _ 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 b**2 + c**2 == a**2: print("good") elif a == b or b == c or a == c: print("perfect") else: print("just a triangle")