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

可以设一个阈值>10000,每次搜到这个阈值就住手

Posted by applepi at 2011-04-17 15:50:51 on Problem 1395
In Reply To:bfs AC的童鞋试下这组数据 Posted by:cangratul at 2009-11-20 13:06:04
如果阈值是K,那么复杂度就是O(KlogK)。设个1000000不成问题~
另外您这组数据不合法……

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