Master of Procrastination

2 secs 1024 MB
TrueRyoB's icon TrueRyoB

difficulty: ★★☆☆☆☆ (this problem is so trash it's unreal)

Problem description

Yoji, a lazy boy, is in debt. Its current amount is CC and the lender charges PP % of an annual interest, compounded yearly. He has set the maximum cumulative payment amount threshold to TT.

Given the condition, what is the least amount he should pay back every year in integer? He always manages to deposit before another interest is applied.

Constraints

  • 1C1051\leq C \leq 10^5
  • 0<P1000 \lt P \leq 100
  • CT1018C \leq T \leq 10^{18}
  • Every input is an integer

提出


Go (1.21)