![](https://img-blog.csdnimg.cn/20190927151043371.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
网络流
网络流
王江奎
这个作者很懒,什么都没留下…
展开
-
最大流-Dinic算法模板
const int INF=0x3f3f3f3f;struct Edge{ int from,to,cap,flow; Edge(int _from,int _to,int _cap,int _flow):from(_from),to(_to),cap(_cap),flow(_flow){}};struct Dinic{ int s,t; vector<Edge> ...原创 2020-01-17 15:24:12 · 125 阅读 · 0 评论 -
Gym - 101981I-MagicPotion-最大流
题目描述There are n heroes and m monsters living in an island. The monsters became very vicious these days, so the heroes decided to diminish the monsters in the island. However, the i-th hero can only ...原创 2020-01-17 15:21:54 · 159 阅读 · 0 评论