| ||||||||||
| 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:你没有考虑到1In Reply To:死人咧,在自己机器上调试答案正确的呀,为什么一提交就是:Wrong Answer呢/L Posted by:12344312 at 2005-10-05 18:24:00 #include <math.h>
#include <stdio.h>
#include <iostream.h>
void main()
{
long i,n,s[100],sum;
cin>>n;
for(i=0;i<n;i++)
cin>>s[i];
for(i=0;i<n;i++)
{
if(s[i]==1)
{
cout<<1<<endl;
}
else
{
sum=(long)((log10(sqrt(4.0*acos(0.0)*s[i]))+s[i]*(log10(s[i])-log10(exp(1.0))))+1);
cout<<sum<<endl;
}
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator