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

TLE~~

Posted by mostleg at 2006-07-28 11:03:08 on Problem 2749
In Reply To:我用O(n+m)的2-sat判。。依然超时,不知道过了的大牛有什么好的方法或者优化? Posted by:panther at 2006-01-27 19:25:39
我只建一次邻接表,在表中记录这样一个信息:该边在距离小于等于多少的时候存在。然后排序,这样在求强连通分量的时候,只需要考虑已有的边。
仍然TLE。。。还有什么好的优化方法?

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