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 participant at 2015-10-10 08:45:51 on Problem 1064
In Reply To:补充重要俩点 Posted by:su03121231 at 2014-04-30 00:18:22
用double二分的:
1.while(l<r-eps)里eps最少取1e-3
2.出于各种原因,二分时检测能够剪出的总段数sum用int时没WA
3.l,r二分返回l会WA,r能AC
4.输出答案时要防止四舍五入,不然会WA

用__int64二分的:
1.输入数据要+0.005再处理...虽然不知道为什么

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