Files
kattis/savingforretirement.py

10 lines
177 B
Python

b, bret, bsav, a, asav = map(int, input().split())
btot = (bret - b) * bsav
atot = 0
while True:
a += 1
atot += asav
if atot > btot:
print(a)
exit()