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 blablabla at 2007-01-25 20:42:43 on Problem 2002
最最重要的一点:千万不要使用double,一切用int就可以搞定。开始的时候没注意推公式,全用double做的,一会TLE一会WA.....郁闷死了

至于用不用hash,不会影响是否超时,hash比binary search快一些。STL set的binary search比我写的binary search快很多 : (

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