Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
88700 | 空 | 判断三角形形状 | Python3 | Accepted | 35 MS | 3780 KB | 317 | 2024-08-20 15:48:40 |
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*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a: s.append("good") elif a==b or a==c or b==c: s.append("perfect") else: s.append("just a triangle") for i in s: print(i)