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
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 1326번 폴짝폴짝(python) (0) | 2021.06.15 |
---|---|
백준 알고리즘 21867번 Java Bitecode(python) (0) | 2021.06.06 |
백준 알고리즘 6603번 로또(python) (0) | 2021.04.27 |
백준 알고리즘 1238번 파티(python) (0) | 2021.04.10 |
백준 알고리즘 1715번 카드 정렬하기(python) (0) | 2021.04.07 |