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:rate一定要用double存,不能用float,否则wa有木有

Posted by 1110322231 at 2012-07-30 18:39:52 on Problem 2390
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:
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