pypy3解法
查看原帖
pypy3解法
1248152
cdAGcwhml楼主2024/1/14 18:44
a=input('')
d,f=a.split()
p=[i+1 for i in range(int(f))]
for i in range(int(d)-1):
    p.pop(0)'''按要求建立列表'''
num=0
for i in p:
    num+=str(i).count('2')'''数次数
print(num)
2024/1/14 18:44
加载中...