1588: [HNOI2002]营业额统计(Splay树入门)
题目的连接
今天开始学习splay树,如cxlove大神所说,开始主要追随别人的代码,然后写出适合自己的,学习的话可以参考kuangbin的这篇文章,及里面提及的论文
#include<cstdio>
#include<algorithm>
using namespace std;
const int maxn=100005;
const int inf=1<<28;int pre[maxn],k
原创
2015-09-19 11:42:38 ·
414 阅读 ·
0 评论