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]>100print('hacker'); exit()
if score[1]>100print('hacker'); exit()
if score[2]>200print('hacker'); exit()
if score[3]>200print('hacker'); exit()
if score[4]>300print('hacker'); exit()
if score[5]>300print('hacker'); exit()
if score[6]>400print('hacker'); exit()
if score[7]>400print('hacker'); exit()
if score[8]>500print('hacker'); exit()
if sum(score)>=100:print('draw')
elseprint('none')
cs
반응형