풀이
피타고라스의 정리에 의해 가장 긴 변의 길이를
코드
def main():
while True:
a, b, c = sorted(map(int, input().split()))
if a == 0:
break
print("right" if a * a + b * b == c * c else "wrong")
main()피타고라스의 정리에 의해 가장 긴 변의 길이를
def main():
while True:
a, b, c = sorted(map(int, input().split()))
if a == 0:
break
print("right" if a * a + b * b == c * c else "wrong")
main()