python报错
查看原帖
python报错
1260828
liufengyi2014楼主2024/1/16 17:01
inp = input().split()
count = 0
for i in [char for char in str(list(range(1,int(inp[0])+1))).replace("[","").replace("]","").replace(",","").replace(" ","")]:
   if int(i) == int(inp[1]):
       count = count + 1
print(count)
有什么问题?TLE了!
2024/1/16 17:01
加载中...