摘要:
费用流 例题A题解 将每天拆成月初和月底,然后再月初买卖,月底存进仓库,按照题意进行连边即可。 例题A代码 #include<bits/stdc++.h> using namespace std; inline int read(){ int x = 0, f = 1;char ch = getch 阅读全文
摘要:
网络流模型及应用 例题A题解 直接对于每个限制连边,然后跑最小割,最小割等于最大流。 例题A代码 #include<bits/stdc++.h> #define int long long using namespace std; inline int read(){ int x = 0, f =1 阅读全文
摘要:
网络流初探 例题A题解 网络流板子,不会自己学 例题A代码 #include<bits/stdc++.h> #define int long long using namespace std; inline int read(){ int x = 0, f =1;char ch = getchar( 阅读全文
摘要:
金牌导航-二分图匹配 例题A题解 将行和列相匹配,跑最小割即可。 例题A代码 #include<bits/stdc++.h> using namespace std; inline int read(){ int x = 0, f = 1;char ch = getchar(); while(ch 阅读全文