摘要:
学了好久了,最开始用的是Treap,现在又学了splay,还没有掌握,先做个初步总结,算是准备个模板吧。前几天写了个splay的题,使用的以前学的splay,巨丑无比[HNOI2002]营业额统计HNOI2002 1 /* 2 排名系统 -- Treap 3 */ 4 5 #include <map> 6 #include <cmath> 7 #include <cstdio> 8 #include <cstdlib> 9 #include <iostream> 10 #include <ctime> 11 12 #def 阅读全文