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 |
早就溢出了……In Reply To:郁闷哪...这个怎么不对啊? Posted by:00448151 at 2005-09-30 00:26:53 > #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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator