开始网络流的学习,更新一下isap的模板 #include<cstdio> #include<cstring> #include<algorithm> #define read(x) x=getint() using namespace std; const int N = 403; int getint() { int k = 0, fh = 1; char c = getchar(); for(; c < '0' || c > '9'; c = getc…
刘汝佳的蓝书上已经给出了大部分,先给上完整代码(以草地排水为例). #include<iostream> #include<algorithm> #include<cstring> #include<cstdlib> #include<cstdio> using namespace std; #define e edges[i] ,Maxm=,INF=0x7f7f7f7f; int n,m,s,t; int d[Maxn],cur[Maxn],n…