Rosetta Problems

Lump-Sum Repayment of Growing Debt

https://atcoder.jp/contests/awc0148/tasks/awc0148_d