摘要: 先上模板,应该每个人都写得差不多的:基本上包含了sbt的所有基本操作。View Code 1 #include <cstdio> 2 #include <cstdlib> 3 #include <cstring> 4 #include <iostream> 5 #include <algorithm> 6 7 #define N 100010 8 9 using namespace std; 10 11 int key[N],lt[N],rt[N],sz[N]; 12 int root,cnt; 13 14 void rotate_l 阅读全文
posted @ 2013-01-13 15:36 proverbs 阅读(2826) 评论(2) 推荐(0) 编辑