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))
'''
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))