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 TEDDER at 2007-04-13 17:21:17 on Problem 1423
In Reply To:终于过了! Posted by:niuniu2006 at 2007-04-01 14:57:18
> #include <iostream>
> #include <cmath>
> 
> using namespace std;
> 
> int main()
> {
>     const double e = 2.7182818284590452354, pi = 3.141592653589793239;
> 	int n;
> 	double a;
> long double sum=0;
> 	
> 	
> 	int arr[100];
> 	cin>>n;
> 	
> 	for (int i=0;i<=n-1;++i)
> 	{
> 		cin>>a;
> 		if(a==1)
> 			arr[i]=1;
> 		else
> 		arr[i]=.5*log10(2*a*pi)+a*log10(a/e)+1;	
> 		
> 	}
> 	for (int j=0;j<=n-1;++j)
> 		cout<<arr[j]<<endl;
> 	
> 	return 0;

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