您的位置:首页 > 其它

POJ 2390 解题报告

2015-05-11 23:42 387 查看
这道题是道简单题,当然,手写pow会增加难度,看自己的选择了。我这里直接用的cmath里面的pow。

thestoryofsnow2390Accepted144K0MSC++488B
/*
ID: thestor1
LANG: C++
TASK: poj2390
*/
#include <iostream>
#include <fstream>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <limits>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <cassert>

using namespace std;

int main()
{
int R, M, Y;
scanf("%d%d%d", &R, &M, &Y);
printf("%d\n", (int)(M * pow(1 + R / 100.0, Y)));
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: