Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86823 张智博 判断三角形形状 Python3 Accepted 41 MS 3780 KB 284 2024-07-28 12:05:12

Tests(1/1):


Code:

t = int(input()) for _ in range(t): a, b, c = map(int, input().split()) if a**2 + b**2 == c**2 or a**2 + c**2 == b**2 or b**2 + c**2 == a**2: print("good") elif a == b or b == c or a == c: print("perfect") else: print("just a triangle")