Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85719 汤弘毅 判断三角形形状 Python3 Accepted 37 MS 3788 KB 309 2024-07-20 09:08:50

Tests(1/1):


Code:

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