摘要:
#include<stdio.h>#include<math.h>#define PI 3.1415926535898#define e 2.7182818284590 int main(){int t,n;double ans;scanf("%d",&t);while(t--){scanf("%d",&n);ans=log10(sqrt(2*PI*n))+n*log10(n/e);printf("%.0lf\n",ceil(ans));}return 0;} 阅读全文
posted @ 2012-10-09 21:09
M_cag
阅读(96)
评论(0)
推荐(0)
浙公网安备 33010602011771号