splay
文章平均质量分 79
double1994
这个作者很懒,什么都没留下…
展开
-
HDU 1754 I Hate It
水题,Splay做下。 #include #include #include #include using namespace std; #define N 200005 #define mod 20140518 const int inf = (1 << 29); typedef long long LL; int n, m; int pre[N], key[N], ch[N][2],原创 2014-08-01 16:47:41 · 505 阅读 · 0 评论 -
[NOI2004]郁闷的出纳员
之前SBT写过一次,Splay再写一次。 因为少加一对括号原创 2014-07-10 17:34:05 · 523 阅读 · 0 评论 -
[HNOI2002]营业额统计
splay学习第一题。代码基本看cxlove的。splay原创 2014-07-06 19:14:26 · 519 阅读 · 0 评论 -
POJ 3468 A Simple Problem with Integers
由于Rotate中pushdown(x)和pushdown(y)的顺序搞反了导致答案一直不对。应该是xianjiang原创 2014-08-02 15:42:00 · 569 阅读 · 0 评论