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

郁闷哪...这个怎么不对啊?

Posted by 00448151 at 2005-09-30 00:26:53 on Problem 1423
#include <iostream.h>
#include <math.h>
const double E=2.7182818284590452354;
const double PI=3.14159265358979323846264338327950288;
void main ()
{
	int times;
	cin>>times;
	int n;
	while(times--)
	{
		cin>>n;
		cout<< (int)log10( pow(n/E,n)*sqrt(2*PI*n) ) +1<<endl;
	}
}

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