practivceAlgorithm/백준
[백준][Python] 14912 숫자빈도수
findTheValue
2021. 7. 24. 12:49
많은 방법이 있겠지만 나는 전체 다 구하는걸 좋아하므로 counter썼다.
from collections import Counter
n,d = input().split()
n_list = ''.join(map(str,list(range(1,int(n)+1))))
b = Counter(n_list)
print(b[d])