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

为什么执行一次spfa也会TLE???

Posted by ss11331414 at 2012-04-25 13:40:06 on Problem 3249
我的想法是增加一个顶点,并增加该顶点到原图中入度为0的点的边权值为相应的点的权值,然后用spfa求出增加的顶点到出度为0的各点的最长路,但为什么会超时,哪位大神能指导一下?谢谢。

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