題目會給你
e 一開始有幾個空瓶子
f 在路邊找到的空瓶數量
c 要幾個空瓶子才能再換一瓶soda
最後要求出在這期間Tim到底喝了幾瓶
ex: 9 0 3
9/3 = 3
3/3 = 1
ans: 4
ex:
5 5 2
10/2 = 5
5/2 = 2...1
3/2 = 1...1
2/2 = 1
ans: 9
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
題目會給你
e 一開始有幾個空瓶子
f 在路邊找到的空瓶數量
c 要幾個空瓶子才能再換一瓶soda
最後要求出在這期間Tim到底喝了幾瓶
ex: 9 0 3
9/3 = 3
3/3 = 1
ans: 4
ex:
5 5 2
10/2 = 5
5/2 = 2...1
3/2 = 1...1
2/2 = 1
ans: 9