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

不能AC的看过来

Posted by Lemon_TsyD at 2010-05-11 15:14:45 on Problem 2135
因为此题是无向图,所以建边的时候如果建两条费用都是正的边的话,退流时无法修正费用。
所以应该建4条边:
第一对:
a->b cost 1
b->a -cost 0
第二对:
b->a cost 1
a->b -cost 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