POJ 2390 Bank Interest(水~)
来源:互联网 发布:中国法律 知乎 编辑:程序博客网 时间:2024/06/08 11:15
Description
给定利率,本金和年数,求最后的总金额
Input
三个整数a,b,c分别表示利率,本金和年数
Output
输出存c年后的总金额
Sample Input
5 5000 4
Sample Output
6077
Solution
纯净水…
Code
#include<stdio.h>#include<math.h>int main(){ int a,c,i; double b; scanf("%d%lf%d",&a,&b,&c); b*=pow((1+a/100.0),c); printf("%d\n",(int)b); return 0;}
0 0
- POJ 2390 Bank Interest(水~)
- POJ 2390-Bank Interest-水
- poj 2390 Bank Interest
- poj 2390 Bank Interest
- POJ 2390 Bank Interest
- POJ 2390 Bank Interest
- poj 2390 水题 Bank Interest
- poj 2390 Bank Interest(计算本利和)
- POJ 2390 Bank Interest(我的水题之路——double和floa计算差别)
- POJ2390:Bank Interest
- poj2390 Bank Interest
- POJ2390 Bank Interest【水题】
- NUC1373 Bank Interest【水题】
- bzoj1755 [Usaco2005 qua]Bank Interest
- 1755: [Usaco2005 qua]Bank Interest
- bzoj1755 [Usaco2005 qua]Bank Interest
- bzoj1755 [Usaco2005 qua]Bank Interest
- POJ 1326 Mileage Bank(水~)
- ListView自定义样式
- u-boot移植
- ClassNotFoundException
- Visual Studio + VA 常用快捷键
- Linux系统抓取数据包
- POJ 2390 Bank Interest(水~)
- Java NotNoop推送方式实例
- MYSQL语句和表的优化
- tomcat原理以及处理HTTP请求的过程
- 【j2ee spring】40、巴巴运动网的产品添加修改选择
- Android获取内置、外置以及OTG等方式挂载的存储设备路径
- 欢迎使用CSDN-markdown编辑器
- 关于csv数据如何导入mongo的historicialQuotes的命令导入方式
- 2012年5月SAT香港真题解析