n=int(input())
a=[0,0,0,0]
count=0
i=1
while(True):
if count==n:
break
if i%7==0 or '7' in str(i):
a[i%4]+=1
else:
count+=1
i+=1
for i in range(1,4):
print(a[i])
print(a[0])
CCF CSP 201912-1 报数(Python)
最新推荐文章于 2021-09-11 18:08:31 发布