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

[백준/파이썬]21866번 추첨을 통해 커피를 받자

by 현장 2021. 7. 20.

-코드

p = list(map(int, input().split()))
MAX_p = [100, 100, 200, 200, 300, 300, 400, 400, 500]
f = 0
for i in range(9):
    if p[i] > MAX_p[i]:
        f = -1
        break
if sum(p) < 100:
    print("none")
elif f == -1:
    print("hacker")
else:
    print("draw")