새소식

Algorithm/Acmicpc.net (백준)

[python] 백준 : 앵그리 창영 (3034번)

  • -
import math
n, w, h = map(int, input().split())
box = math.sqrt(w * w + h * h)
for i in range(n):
    match = int(input())
    if match > box:
        print("NE")
    else:
        print("DA")​
n, w, h = map(int,input().split())
p = ww + hh
for i in range(n):
    s = int(input())
    if s*s > p:
        print("NE")
    else:
        print("DA")
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.