n = int(input())
dic = {0:[],1:[],2:[],3:[]}
cc = {0:0,1:0,2:0,3:0}
count = 0
i = 0
s = 0
j_s = 0
while 1:
count += 1
if '7' in str(count) or count%7 == 0:
cc[i%4] += 1
i += 1
continue
dic[i%4].append(count)
s += 1
i += 1
if s == n:
break
for i in range(4):
print(cc[i])
[Python]CCF——第18次CCF认证题1(201912-1)
猜你喜欢
转载自www.cnblogs.com/SavvyM/p/12053382.html
今日推荐
周排行