Run ID:85719
提交时间:2024-07-20 09:08:50
n = int(input()) t = [] for i in range(n): t.append(list(map(int,input().split()))) t = [sorted(x) for x in t] for j in t: if j[0]*j[0] + j[1]*j[1] == j[2]*j[2]: print('good') elif len(list(set(j))) in (1,2): print('perfect') else: print('just a triangle')