4153번: 직각삼각형
4153번: 직각삼각형 (acmicpc.net) 4153번: 직각삼각형 입력은 여러개의 테스트케이스로 주어지며 마지막줄에는 0 0 0이 입력된다. 각 테스트케이스는 모두 30,000보다 작은 양의 정수로 주어지며, 각 입력은 변의 길이를 의미한다. www.acmicpc.net import math while('Ture'): a, b, c = sorted(map(int, input().split())) if a==0 and b==0 and c==0: break elif math.pow(a, 2) + math.pow(b, 2) == math.pow(c, 2): print('right') else: print('wrong')