2015年8月9日

HDU3487 Play with Chain

摘要: SPLAY 翻转,删除段,添加段操作 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 300005; 6 int fa[maxn],son[2][maxn],val[maxn],s... 阅读全文

posted @ 2015-08-09 21:18 round_0 阅读(210) 评论(0) 推荐(0) 编辑

POJ3481 Double Queue

摘要: 水题用set和splay都写了一下set版 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxn = 300005; 7 struct node 8 { 9 int va... 阅读全文

posted @ 2015-08-09 20:27 round_0 阅读(131) 评论(0) 推荐(0) 编辑

导航