//斯特林公式 #include <stdio.h> #include <stdlib.h> #include <iostream> #include <string.h> #include <math.h> using namespace std; #define PI 3.1415926 double e=2.7182818284; int main() { int t,n; freopen("E://input.txt","r",stdin); scanf("%d",&t); while(t--) { scanf("%d",&n); printf("%d/n",(int) ( n*log10( n/e) + 0.5*log10(2*PI*n))+1); } return 0; }