백준(BOJ) 풀이
[백준 4153] 직각삼각형
오호라-노이혼
2019. 11. 15. 09:01
while True:
p,q,r=map(int, input().split())
if p==0 and q==0 and r==0:
break
a=max(p,q,r)
c=min(p,q,r)
b=p+q+r-a-c
if a**2-b**2-c**2==0:
print("right")
else :
print("wrong")