Run ID:86923

提交时间:2024-07-29 22:13:29

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")