POJ 2390 解题报告
2015-05-11 23:42
387 查看
这道题是道简单题,当然,手写pow会增加难度,看自己的选择了。我这里直接用的cmath里面的pow。
thestoryofsnow | 2390 | Accepted | 144K | 0MS | C++ | 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; }
相关文章推荐
- POj 1105解题报告
- poj 1207 The 3n + 1 problem 解题报告
- POJ 1001 Exponentiation解题报告
- poj解题报告——1032
- poj解题报告——1450
- POJ 1948 Triangular Pastures 解题报告
- POJ 1001 解题报告
- POJ-3274 Gold Balanced Lineup 解题报告
- POJ 1411 Calling Extraterrestrial Intelligence Again 解题报告
- POJ 1154 解题报告
- 解题报告 poj 3093
- POJ_1426 Find The Multiple解题报告
- POJ-2560-Freckles 解题报告
- poj1651解题报告
- POJ 1308 解题报告
- poj 1422 Air Raid 最小路径覆盖 二分图匹配 解题报告
- poj1703解题报告
- POJ - 3461 Oulipo解题报告(KMP)
- POJ 1007DNA Sorting解题报告——【PKU ACM】
- POJ-2503 Babelfish 解题报告