python-algorithm
백준 21866 추첨을 통해 커피를 받자
무적김두칠
2021. 11. 30. 10:58
1
2
3
4
5
6
7
8
9
10
11
12
|
score=list(map(int,input().split()))
if score[0]>100: print('hacker'); exit()
if score[1]>100: print('hacker'); exit()
if score[2]>200: print('hacker'); exit()
if score[3]>200: print('hacker'); exit()
if score[4]>300: print('hacker'); exit()
if score[5]>300: print('hacker'); exit()
if score[6]>400: print('hacker'); exit()
if score[7]>400: print('hacker'); exit()
if score[8]>500: print('hacker'); exit()
if sum(score)>=100:print('draw')
else: print('none')
|
cs |
반응형