Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:将i拆为i->i',容量为m[i].再加一个源点s,s->i(0~n-1)为p[i].然后对每个点求最大流.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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator