萌新 Dinic 求调

P3381 【模板】最小费用最大流

@[shinzanmono](/user/610557) 首先,你把输出dinic和输出cost用两个cout
by hegm @ 2023-01-18 19:42:39


@[shinzanmono](/user/610557) dfs里面的if ```cpp if (dis[v] = dis[u] + graph[p].w && w != 0) ``` 你用的赋值等
by hegm @ 2023-01-18 19:51:21


@[shinzanmono](/user/610557) 你这就离谱,你网络流模板怎么过得?
by hegm @ 2023-01-18 19:58:16


你也没有在dfs的时候使用 inq 判断是否在dfs 上层放置死循环和MLE。。。。。。
by hegm @ 2023-01-18 20:00:45


@[hegm](/user/331947) ![](//图.tk/gg!25)![](//图.tk/gh!25)
by shinzanmono @ 2023-01-18 20:16:45


@[shinzanmono](/user/610557) 我够呛能给你调出来,你再自己看看吧
by hegm @ 2023-01-18 20:18:41


@[shinzanmono](/user/610557) ~~能的话给个关注~~
by hegm @ 2023-01-18 20:19:10


@[hegm](/user/331947) 给了![](//图.tk/3)
by shinzanmono @ 2023-01-18 20:23:32


|