Saving For Retirement
This commit is contained in:
1 parent
a93dec111f
commit
dcb0d9fe00
1 file changed
+9
@@ -0,0 +1,9 @@
|
||||
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()
|
||||
Reference in new issue
Block a user