728x90
반응형
단순 수학 문제이다.
for i in range(int(input())):
li = sorted(map(int, input().split()))
if li[0]**2 + li[1]**2 == li[2]**2:
print(f"Scenario #{i+1}:")
print("yes\n")
else:
print(f"Scenario #{i+1}:")
print("no\n")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 7581번 Cuboids(python) (0) | 2021.02.18 |
---|---|
백준 알고리즘 7523번 Gauß(python) (0) | 2021.02.18 |
백준 알고리즘 7015번 Millennium(python) (0) | 2021.02.18 |
백준 알고리즘 6975번 Deficient, Perfect, and Abundant(python) (0) | 2021.02.18 |
백준 알고리즘 6780번 Sumac Sequences(python) (0) | 2021.02.18 |