def jg(list):
if list[0]**2+list[1]**2==list[2]**2:
return 'right'
else:return 'wrong'
while True:
a=sorted(list(map(int,input().split())))
if a[0]==0 and a[1]==0 and a[2]==0:
break
else:
print(jg(a))
'알고리즘 > 백준' 카테고리의 다른 글
백준-4673번(셀프 넘버)-python3 (0) | 2023.11.26 |
---|---|
백준-4344번(평균은 넘겠지)-python3 (0) | 2023.11.26 |
백준-4101번(크냐?)-python3 (0) | 2023.11.26 |
백준-3273번(두 수의 합)-python3 (2) | 2023.11.26 |
백준-3184번(양)-python3 (0) | 2023.11.26 |