logo AlgoBeat OnlineJudge
登录 注册

#101755. [BZOJ 1755] [Usaco2005 qua]Bank Interest

内存限制:64 MiB 时间限制:5000 ms 标准输入输出
题目类型:传统 评测方式:文本比较
上传者: 匿名

题目描述

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.

样例

样例输入 #1

5 5000 4

样例输出 #1

6077

样例说明

annual interest, money, years.
Year : .
Year : .
Year : .
Year : .
The integer part of is .

数据范围与提示

对于 的数据:

Usaco2005 qua