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

Re:不能AC的看过来

Posted by martinblack954 at 2011-04-02 15:36:46 on Problem 2135
In Reply To:不能AC的看过来 Posted by:Lemon_TsyD at 2010-05-11 15:14:45
> 因为此题是无向图,所以建边的时候如果建两条费用都是正的边的话,退流时无法修正费用。
> 所以应该建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