Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
88704 | 空 | 判断三角形形状 | Python3 | Accepted | 38 MS | 3792 KB | 356 | 2024-08-20 15:52:03 |
t = int(input()) s = [] for i in range(t): a,b,c = input().split() a,b,c = int(a),int(b),int(c) if a == b or a == c or b == c: s.append('perfect') elif a**2 + b**2 == c**2 or a**2 + c**2 == b**2 or c**2 + b**2 == a**2: s.append('good') else: s.append('just a triangle') for i in s: print(i)