#PCBSAU0000020. Lãi kép (Compound Interest)
Lãi kép (Compound Interest)
Compound Interest
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given principal , per-period interest rate percent, and periods , calculate with two fractional digits. This PHOJ edition uses principals divisible by 100 and one of three fixed interest rates.
Input
One line with integers .
Output
Print the final balance with exactly two fractional digits.
Subtask
- Subtask 1 — 100 points: , divisible by ; ; .
Example
Input
1000 10 2
Output
1210.00
Explanation
The per-period multiplier is ; after two periods the value is , printed as 1210.00.