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;
}

posted @ 2011-05-25 12:50  金海峰  阅读(181)  评论(0编辑  收藏  举报