n = int(input())
a = [0]*4
num = 0 # 当前报出的数字
count = 0 # 成功报了多少个数字
def seven_include(num):
if '7' in str(num):
return True
else:
return False
while(count < n):
for i in range(4):
num += 1
if num % 7 == 0 or seven_include(num):
a[i] += 1
else:
count += 1
for i in range(4):
print(a[i])
CCF 201912-1 Python
最新推荐文章于 2024-08-24 11:00:49 发布