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

Re:终于找到陷阱了!哈哈!

Posted by ganghelloworld at 2010-05-13 09:41:51 on Problem 1089
In Reply To:终于找到陷阱了!哈哈! Posted by:ygx2468 at 2008-09-03 22:12:09
> 一直TLE,原来快拍在n组区间完全一样的时候退化了,超时!改成stl的sort就过了。嘿嘿

    对于这种情况,一般在快排的时候可以随机选一下主元,但是OJ不容许time()类的函数,所以只要选择中间那个元素就可以了。
    我就是这样AC的

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