| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67753 | 胡海峰老师 | 判断三角形形状 | Python3 | Accepted | 34 MS | 3792 KB | 500 | 2024-03-17 14:18:26 |
""" 4 3 4 5 2 2 3 1 4 4 4 6 3 output good perfect perfect just a triangle """ def order(a,b,c): if b>a: a,b=b,a if c>a: a,c = c,a if c>b: b,c=c,b return a,b,c n = int(input()) for x in range(n): a,b,c = input().split() a,b,c = int(a),int(b),int(c) a,b,c = order(a,b,c) if a**2 == b**2 +c**2: print("good") elif a==b or a==c or b==c: print("perfect") else: print("just a triangle")