Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:简单啊,一句话搞定In Reply To:简单啊,一句话搞定 Posted by:bushiniao at 2006-11-02 15:48:41 main(){int i,R,M,Y;double ans,r;scanf("%d%d%d",&R,&M,&Y);r=1+R*1.0/100;ans=M*1.0;for(i=1;i<=Y;i++)ans*=r; Y=(int)ans;printf("%d\n",Y);} Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator