摘要:
[SDOI2016]征途 这个就当做斜率优化的模板吧.. #include<bits/stdc++.h> #define ll long long using namespace std; const int N=3010; ll f[N][N],a[N],l,r,q[N],n,m,sum[N]; 阅读全文
摘要:
今天开始学网络流... 首先是bfs找通流的EK算法.. #include<bits/stdc++.h> using namespace std; const int N=10010,M=100010,qwq=1<<30; int link[N],tot=1,n,m,s,t,maxflow,vis[ 阅读全文