摘要:
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #define P pair<int,int> #define ls(x) T[x] 阅读全文
摘要:
#include #include #include #include #include #include using namespace std; int f[13][8000],g[13][8000]; int mep[13][13]; int main() { int n,m; scanf("%d%d",&n,&m); ... 阅读全文
摘要:
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #define LL long long #define l(x) (x<<1) # 阅读全文
摘要:
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #define LL long long #define l(x) (x<<1) # 阅读全文
摘要:
1.1 基本数据结构 1. 数组# 2. 链表,双向链表% 3. 队列,单调队列,双端队列# 4. 栈,单调栈# 1.2 中级数据结构 1. 堆# 2. 并查集与带权并查集# 3. hash 表# 自然溢出% 双hash% 1.3 高级数据结构 1. 树状数组# 2. 线段树#,线段树合并% 3. 阅读全文
摘要:
#include<cmath> #include<cstdio> #include<cstdlib> #include<cstring> #include<iostream> #include<algorithm> #define MAXN 200010 using namespace std; i 阅读全文
摘要:
#include<iostream> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<algorithm> using namespace std; int main() { freopen( 阅读全文
摘要:
#include<cstdio> #include<iostream> #include<cstring> #include<cstdlib> #include<cmath> #include<algorithm> #define MAXN 100010 using namespace std; s 阅读全文
摘要:
//洛谷P3377,不会配对堆基本思路的请百度#include #include #include #include #include #include #include using namespace std; struct heap { int fa; vectorson; int val; }PDD[100010];//每个节点存父亲fa(好像没用),儿子son,权... 阅读全文
摘要:
#include using namespace std; struct node { int w, lc, rc, h; }t[M]; int merge(int A, int B) { if(!A) return B; if(!B) return A; if(t[A].w < t[B].w) swap(A, B); t[A... 阅读全文