摘要: #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) 编辑
摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<algorithm> #include<stack> #include<vector> using nam 阅读全文
posted @ 2017-10-31 15:17 秦こころ酱 阅读(106) 评论(0) 推荐(0) 编辑