标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 31681 Accepted Submission(s): 14769
int main() { int T, n; scanf("%d", &T); while (T --) { scanf("%d", &n); if (n == 1) printf("1\n"); else printf("%d\n", (int)(0.5*log10(2*PI*n)+n*log10(n/e)+1)); } return 0; }
标签:
原文地址:http://www.cnblogs.com/LinKArftc/p/4902630.html