Python3 为什么以下代码会爆超时?
查看原帖
Python3 为什么以下代码会爆超时?
1348231
Orig1nal楼主2024/5/4 16:34
n,x = map(int,input().split())

c = ''
for i in range(1,n+1):
    c = c + str(i)
print(c.count(str(x)))
2024/5/4 16:34
加载中...