文章
67
粉丝
207
获赞
29
访问
38.2k
b,a =map(int,input().split())
num = [0]*105
#list1 = list(map(int,input().split())) 输入数组
for i in range(0,105):
num[i] = 1
count = 0
count1 = 0
i = 0
while True:
i+=1
if num[i] == 1:
count1 += 1
if count1 == a:
num[i] = 0
count1 = 0
count += 1
if count < b:
print(i, end=' ')
elif count == b:
print(i)
break
if i == b:
#print(i,end=' ')
i = 0
登录后发布评论
暂无评论,来抢沙发