res = 0
S = int(input())
price = int(input())
empty = int(input())
while S - price >= 0 :
k = S // price
res += k
S = S % price + k * empty
print(res)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
res = 0
S = int(input())
price = int(input())
empty = int(input())
while S - price >= 0 :
k = S // price
res += k
S = S % price + k * empty
print(res)