Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88701 kong 判断三角形形状 Python3 Accepted 45 MS 3776 KB 333 2024-08-20 15:48:46

Tests(1/1):


Code:

t = int(input()) d = [] 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: d.append('good') elif a==b or a==c or b==c: d.append('perfect') else: d.append('just a triangle') for i in d: print(i)