poj2390

简单题

View Code
#include <iostream>
#include
<cstdio>
#include
<cstdlib>
#include
<cstring>
#include
<cmath>
using namespace std;

int main()
{
int r, m, y;
//freopen("t.txt", "r", stdin);
scanf("%d%d%d", &r, &m, &y);
long double ans = m;
printf(
"%lld\n", (long long)(ans * pow((1 + r * 1.0 / 100), y)));
return 0;
}

原文地址:https://www.cnblogs.com/rainydays/p/2056496.html