Agorithm/백준 알고리즘
백준 알고리즘 21866번 추첨을 통해 커피를 받자(python)
kimjinho1
2021. 6. 6. 21:00
728x90
반응형
단순 구현 문제이다.
max_score = [100, 100, 200, 200, 300, 300, 400, 400, 500]
score = list(map(int, input().split()))
total_score, hacker = 0, 0
for i in range(9):
if score[i] > max_score[i]:
hacker = 1
total_score += score[i]
if hacker:
print("hacker")
else:
print("draw" if total_score >= 100 else "none")
728x90
반응형