HDU 1754 I Hate It (Splay tree和Segment tree)

线段树的模版题,求区间最值和修改一个值,用Splaytree来写更简单!


伸展树code:


线段树code:


你可能感兴趣的:(HDU 1754 I Hate It (Splay tree和Segment tree))