摘要:
二分图匹配: 1.Hungary O(n * m) n为二分图左侧点数 m为二分图右侧点数 #include<bits/stdc++.h> using namespace std; const int N=1e7; struct node{ int from,to,nxt; }e[N]; int h 阅读全文
摘要:
平衡树: Splay #include <bits/stdc++.h> #define root T[0].son[1] using namespace std; int read() { int re = 0, f = 1; char ch = getchar(); while (ch < '0' 阅读全文