본문 바로가기
python-algorithm

백준 21866 추첨을 통해 커피를 받자

by 무적김두칠 2021. 11. 30.

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
반응형

'python-algorithm' 카테고리의 다른 글

백준 21567 숫자의 개수 2  (0) 2021.11.30
백준 16483 접시 안의 원  (0) 2021.11.30
백준 22864 피로도  (0) 2021.11.30
백준 22938 백발백준하는 명사수  (0) 2021.11.30
백준 23037 5의 수난  (0) 2021.11.29

댓글