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

