LOJ 最大流加强版 #include <bits/stdc++.h> const int inf=0x7fffffff; const int maxn=1210; const int maxh=1<<20; using namespace std; int f[maxn][maxn]; typedef unsigned short u16; vector<u16> out[maxn],act[maxn]; #define count cnt struct nodeli…
#include<bits/stdc++.h> using namespace std; const int MM=4e5+5,inf=0x3f3f3f3f; int n,m,s,t,tot=1,a; int nxt[MM],head[MM],to[MM],w[MM]; int h[MM],e[MM],gap[MM],in[MM]; struct cmp { bool operator()(int a,int b) const { return h[a]<h[b]; } }; prior…