codevs
otowa
这个作者很懒,什么都没留下…
展开
-
【codevs】4633 树链剖分入门
之前的模板错了一个地方。。。调的时候怎么也不行。。。 更新&&求解都需要在树链上爬一边。。。 #include #include #define MAXN 249999 #define LL long long using namespace std; //use of main LL n,m; //use of pre_star struct edge { LL nex原创 2016-02-28 15:13:42 · 352 阅读 · 0 评论 -
【模板】dinic(网络流)
#include #include #include #define MAXN 1000 #define INF 0x7fffffff using namespace std; int n,m; int next[MAXN*2],fst[MAXN*2],to[MAXN*2]; int tail=1; int q[MAXN],h[MAXN],c[MAXN*2]; int ans=0; inli原创 2016-03-13 15:11:16 · 290 阅读 · 0 评论