因为现在noi/noip都是无限栈 noi-linux开栈指令 ulimit -s 102400 这个是100mb 平衡树*2 维护序列 翻转 平衡树+1 维护区间+* t了3个点.. 注意打完标记 splay一下 现在写起来正确率还蛮高的 主席树 不要把ls rs写成x*2 另外更新要注意都更新 另外注意有负数的时候 把mid 定义为 h+t<0?(h+t-1)/2:(h+t)/2 扩展bsgs*1 高斯消元*1 ex-gcd *1 ex-crt *1 kmp *1 ac自动机 *1 强连通分…