백준 풀이

백준 4153번 파이썬

ag2개발자 2022. 8. 21. 14:33
while True:
    a= list(map(intinput().split()))
    if sum(a)==0:    #0 0 0 인 경우
        break
    else:
        max_a=max(a)
        a.remove(max_a)
        if a[0]**2+a[1]**2==(max_a)**2:
            print("right")
        else:
            print("wrong")

'백준 풀이' 카테고리의 다른 글

백준 1934번 파이썬  (0) 2022.08.21
백준 3009번 파이썬  (0) 2022.08.21
백준_11653번 파이썬  (0) 2022.08.21
백준 11721번 파이썬  (0) 2022.08.21
백준 1924번 파이썬  (0) 2022.08.21