10个瓶子,3个换一个,最多能换多少个

'''
10个瓶子,3个换一个,最多能换多少个
'''

# -*- coding:utf-8 -*-

def digui(a,b):
temp=a
n=0
while temp//b!=0:
n += temp//b
temp=temp//b+temp%b

return n

if __name__ == '__main__':
print(digui(12,3))
posted @ 2021-12-22 11:22  keep2021  阅读(35)  评论(0编辑  收藏  举报