hdu1018 2018-06-04 10:57:14 浏览数 (1) #include <stdio.h> #include <math.h>int main(void) { int t,n,i; double sum; scanf("%d", &t); while(t--) { scanf("%d",&n); sum=0; for(i=2;i<=n;i ) sum =log10(i); printf("%dn",(int)sum 1); } return 0; } include int return scanf sum 0 人点赞 上一篇:分享雷军22年前编写的代码