Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:简单啊,一句话搞定

Posted by heike567 at 2009-08-21 20:51:30 on Problem 2390
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator