n!的长度为 ll ans = log10(2*pi*n)/2 + n*(log10(n/exp(1.0)))+1; 转载于:https://www.cnblogs.com/jhz033/p/5779239.html