题解代码
n,x = list(map(int,input().split()))
# 计数的量
c = 0
# 整数序列
for i in range(1,n+1):
# count() 计数
c += str(i).count(str(x))
print(c)
题解代码
n,x = list(map(int,input().split()))
# 计数的量
c = 0
# 整数序列
for i in range(1,n+1):
# count() 计数
c += str(i).count(str(x))
print(c)