Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
这种题要是这样就能过就太没水平了,去找一本数学分析翻一下,里面肯定有写Stirling公式的In Reply To:55555~~~~~数学不行,TLE Posted by:JiangLY at 2005-05-01 02:30:05 > var > r:real; > n,i,l,l1:longint; > begin > readln(l); > for l1:=1 to l do > begin > readln(n); > r:=0; > for i:=1 to n do r:=r+ln(i)/ln(10); > writeln(trunc(r)+1); > end; > end. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator