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

Dinkelbach做的要注意了,卡精度

Posted by Sona at 2009-04-20 00:20:04 on Problem 2728 and last updated at 2009-04-20 22:00:44
最好abs(r-res)<0.00001就break,比较保险
虽然我看到有0.0001也AC了的。。
如有需要请参考
http://hi.baidu.com/forsona/blog/item/e15ec009b2f2649d0b7b823a.html

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