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:将i拆为i->i',容量为m[i].再加一个源点s,s->i(0~n-1)为p[i].然后对每个点求最大流.

Posted by ecjtuxsyuan at 2008-10-30 11:26:21 on Problem 3498
In Reply To:Re:用网络流做该如何建图? Posted by:lxc0601 at 2008-08-24 13:54:21
> 拆点? 不过我的tle 。。

将i拆为i->i',容量为m[i].再加一个源点s,s->i(0~n-1)容量为p[i].然后对每个点求最大流.

用Dinic很快的.

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