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:rate一定要用double存,不能用float,否则wa有木有In Reply To:rate一定要用double存,不能用float,否则wa有木有 Posted by:jean890915 at 2011-10-05 08:11:46 #include <stdio.h> #include <math.h> void main() { double R,M,Y,m; scanf("%lf%lf%lf",&R,&M,&Y); m=M*pow(R/100+1,Y); printf("%d\n",(int)(m)); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator