본문 바로가기
python-algorithm

[백준] 1475

by 무적김두칠 2021. 2. 19.

1
2
3
4
5
6
7
tmp=[0]*10
n=input()
for i in n:
    if int(i)==6 or int(i)==9 : tmp[6]+=1
    else: tmp[int(i)]+=1
tmp[6]= (tmp[6]+1)//2
print(max(tmp))
cs

 

반응형

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

[백준] 1672  (0) 2021.02.19
[백준] 1592  (0) 2021.02.19
[백준] 1373  (0) 2021.02.19
[백준] 1316  (0) 2021.02.19
[백준] 1237  (0) 2021.02.19

댓글