hdu 2398 Savings Account - 数学

2014-11-24 03:12:49 · 作者: · 浏览: 0
[cpp]
/*
hdu 2398 Savings Account - 数学
*/
#include
#include
using namespace std;
int main()
{
double x,y,a,l;
int ret;
while(cin>>x>>l>>y)
{
l=1+l/100;
a=log(y/x)/log(l);//l^a=y/x
ret=ceil(a);//向上取整 floor是向下
cout< }
return 0;
}