#include<stdio.h> #include<math.h> int main() { int i,n,t,j; double r; scanf("%d",&n); for(i=0;i<n;i++) { r=0; scanf("%d",&t); for(j=1;j<=t;j++) { r+=log10(j); } printf("%d\n",(int)r+1); } }
hdu 1018 Big Number,布布扣,bubuko.com
原文:http://www.cnblogs.com/xhp956614463/p/3904309.html