写了个在线的线段树套平衡树(无旋 treap),卡了好一会 #41 #42 #48,卡常方法包括但不限于:
inline
pushup
最后一个对 #41 #42 #48 优化很大直接 AC,但是仍然喜提最劣解
离散化真香
代码