bzoj#P1755. [Usaco2005 qua]Bank Interest
[Usaco2005 qua]Bank Interest
题目描述
Farmer John made a profit last year! He would like to invest it well but wonders how much money he will make.
He knows the interest rate that is compounded annually at his bank. He has an integer amount of money . He knows how many years he intends to invest the money in the bank. Help him learn how much money he will have in the future by compounding the interest for each year he saves.
Print an integer answer without rounding. Answers for the test data are guaranteed to fit into a signed bit integer.
输入格式
- Line : Three space-separated integers: , , and .
输出格式
- Line : A single integer that is the number of dollars FJ will have after years.
5 5000 4
6077
样例说明
annual interest, money, years.
Year : .
Year : .
Year : .
Year : .
The integer part of is .
数据规模与约定
对于 的数据:,,。
题目来源
Usaco2005 qua