← Back to List

14912번: 숫자 빈도수 ↗

Solutions

Python 3
78 B | 78 chars
n,k = input().split()
print(sum([str(i).count(k) for i in range(1,int(n)+1)]))