返回顶部

随笔分类 -  OJ-洛谷

luogu.com.cn
摘要:题目链接 造了一个最小费用最大流的板子,可根据需求小改,O2优化后可完全AC #include <bits/stdc++.h> using namespace std; class MinCostFlow { public: struct Result { int flow, cost; }; Mi 阅读全文
posted @ 2020-07-19 20:13 Charles1999 阅读(93) 评论(0) 推荐(0)
摘要:题目链接 保存一下dinic的板子 (不开longlong见祖宗) #include <bits/stdc++.h> using namespace std; const int INF=0x7fffffff; const int MAXN = 210,MAXM = 10010; namespace 阅读全文
posted @ 2020-07-16 19:25 Charles1999 阅读(114) 评论(0) 推荐(0)