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+深搜处理负环 A掉

Posted by threedonkey at 2011-07-10 21:26:17 on Problem 2679
spfa完后,如果i在负环上则times[i]>n。利用这一点,
枚举所有点i,如果times[i]>n && i可到达B 则UNBOUND 

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