摘要:
普通最大流,需要输出方案 https://www.luogu.com.cn/problem/P3254 算是很明显的建图了 点击查看代码 #include <bits/stdc++.h> #define endl '\n' #define IOS \ ios::sync_with_stdio(0); 阅读全文
posted @ 2021-11-18 14:19
FushimiYuki
阅读(32)
评论(0)
推荐(0)
摘要:
最大流,边增广边算,分层解决 https://www.luogu.com.cn/problem/P2754 一开始我以为是分层费用流,但是很容易发现这样不知道要分多少层,这个层数其实是我们要求的答案。 因此不难想到一天一天建,当前最大流=需要运输的人数时即可停止 点击查看代码 #include <b 阅读全文
posted @ 2021-11-18 14:17
FushimiYuki
阅读(37)
评论(0)
推荐(0)

浙公网安备 33010602011771号