[백준] 4153번 : 직각 삼각형 - Python(파이썬)

강재원·2022년 10월 4일
0

[코딩테스트] Python

목록 보기
93/200



https://www.acmicpc.net/problem/4153

while True:
    a,b,c=map(int,input().split())
    if a==0 and b==0 and c==0: break
    sum=a*a+b*b+c*c
    ma=max(a,max(b,c))
    if sum==2*ma*ma: print("right")
    else: print("wrong")
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글