#PCBSAU0000046. Giá trị sau n kỳ tăng trưởng (Value after N Growth Periods)
Giá trị sau n kỳ tăng trưởng (Value after N Growth Periods)
Value after N Growth Periods
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given initial value , growth rate percent per period and nonnegative periods , compute and print two decimals without intermediate rounding.
Input
One line containing in order.
Output
One line showing the final value with exactly two decimal digits.
Subtask
- Subtask 1 — 100 points: is a multiple of 4 from 0 to 40000; belongs to {0,25,50,100}; is 0–4.
Example
Input
100 25 2
Output
156.25
Explanation
Each period multiplies by 1.25, so two periods give 100 * 1.25 * 1.25 = 156.25.