摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #define P pair<int,int> #define ls(x) T[x] 阅读全文
posted @ 2017-11-29 16:37 秦こころ酱 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #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); ... 阅读全文
posted @ 2017-11-28 16:31 秦こころ酱 阅读(324) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #define LL long long #define l(x) (x<<1) # 阅读全文
posted @ 2017-11-14 21:27 秦こころ酱 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #define LL long long #define l(x) (x<<1) # 阅读全文
posted @ 2017-11-14 20:21 秦こころ酱 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1.1 基本数据结构 1. 数组# 2. 链表,双向链表% 3. 队列,单调队列,双端队列# 4. 栈,单调栈# 1.2 中级数据结构 1. 堆# 2. 并查集与带权并查集# 3. hash 表# 自然溢出% 双hash% 1.3 高级数据结构 1. 树状数组# 2. 线段树#,线段树合并% 3. 阅读全文
posted @ 2017-11-14 19:26 秦こころ酱 阅读(197) 评论(0) 推荐(0) 编辑
摘要: #include<cmath> #include<cstdio> #include<cstdlib> #include<cstring> #include<iostream> #include<algorithm> #define MAXN 200010 using namespace std; i 阅读全文
posted @ 2017-11-05 23:09 秦こころ酱 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<algorithm> using namespace std; int main() { freopen( 阅读全文
posted @ 2017-11-04 13:35 秦こころ酱 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<iostream> #include<cstring> #include<cstdlib> #include<cmath> #include<algorithm> #define MAXN 100010 using namespace std; s 阅读全文
posted @ 2017-11-03 16:27 秦こころ酱 阅读(115) 评论(0) 推荐(0) 编辑
摘要: //洛谷P3377,不会配对堆基本思路的请百度#include #include #include #include #include #include #include using namespace std; struct heap { int fa; vectorson; int val; }PDD[100010];//每个节点存父亲fa(好像没用),儿子son,权... 阅读全文
posted @ 2017-11-02 21:42 秦こころ酱 阅读(372) 评论(0) 推荐(0) 编辑
摘要: #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... 阅读全文
posted @ 2017-10-31 16:36 秦こころ酱 阅读(131) 评论(0) 推荐(0) 编辑