python2,6,10超时
查看原帖
python2,6,10超时
1264566
Wangrh楼主2024/1/20 22:17
n, x = map(int, input().split())
count = 0
for i in range(1, n + 1):
    if str(x) in str(i):
        for j in range(len(str(i))):
            if str(x) == str(i)[j]:
                count += 1
print(count, end='')

2024/1/20 22:17
加载中...