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 |
郁闷哪...这个怎么不对啊?#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