본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]13222번 Matches

by 현장 2021. 4. 10.

-코드

from math import sqrt
n, w, h = map(int, input().split())
l = sqrt(w ** 2 + h ** 2)

for i in range(n):
    num = int(input())

    if num <= max(w, h, l):
        print("YES")
    else:
        print("NO")