#P179. 练29.3 银行利息
练29.3 银行利息
Description
Xiaoming has earned some money! He wants to invest it and is curious about how much he can earn.
The compound annual interest rate is (an integer between and ). The current amount of money is (an integer between and ). He knows exactly how many years he wants to invest (range to ).
Help him calculate how much money he will have in the end, and output its integer part. The data guarantees that the output will be within the range of a 32-bit signed integer.
Input Format
A single line containing three integers , , and , separated by spaces.
Output Format
An integer representing the final amount of money Xiaoming will have (integer part).
Sample
5 5000 46077