Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

注意的几点

Posted by law52525 at 2016-08-15 15:54:05 on Problem 1423
1.不要傻傻的直接代斯特林公式,当n=10000000时,(n/e)^n绝对会爆炸。
2.用公式log10(sqrt(2*acos(-1.0)*n))+n*(log10(n/exp(1.0)))+1;求时注意当n==1的特殊情况,这个公式并不适用n==1的情况。
3.如果你的π和e是自己定义的而不是acos(-1.0)和exp(1.0),那么就要注意精度了,小数点后面位数不能太少

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator