[Usaco2005 qua]Bank Interest

这是一篇关于如何计算银行投资复利的博客,介绍了Farmer John如何利用年利率R(0-20之间整数)进行投资。他有M(100-1,000,000之间整数)美元,并打算投资Y(0-400之间整数)年。博客提供了一个示例,解释了如何逐年计算并求出最终的金额,确保答案不进行四舍五入且能容纳在32位有符号整数内。" 120960366,7410809,Java并发编程实践:理论与工具类解析,"['Java', '并发编程', '多线程', '锁', '线程池']
摘要由CSDN通过智能技术生成

题目描述

Farmer John made a profit last year! He would like to invest itwell but wonders how much money he will make. He knows the interestrate R (an integer between 0 and 20) that is compounded annuallyat his bank. He has an integer amount of money M in the range100..1,000,000. He knows how many years Y (range: 0..400) he intendsto invest the money in the bank. Help him learn how much money hewill have in the future by compounding the interest for each yearhe saves. Print an integer answer without rounding. Answers for the testdata are guaranteed to fit into a signed 32 bit integer.

//看了样例输入输出就知道怎么回事了.........

输入描述

* Line 1: Three space-separated integers: R, M, and Y

输出描述

* Line 1: A single integer that is the number of dollars

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值