题解 | 记数问题
记数问题
https://www.nowcoder.com/practice/28b2d9f2bf2c48de94a1297ed90e1732
n, x = map(int, input().split())
c = 0
for i in range(1,n+1):
while i > 0:
y = i % 10
i = i // 10
if y == x:
c = c + 1
print(c)

