n,x = input().split() n = int(n) y = 0 for i in range(1,n+1): k=str(i) for j in range(0,len(k)): if k[j]==x: y += 1 print(y)
三个TLE,有大佬优化一下代码吗?qwq