复习 树链剖分 kd-tree sg函数 线段树合并 dsu on tree http://acm.hdu.edu.cn/showproblem.php?pid=5420 写 连通分量 缩点 网络流 fft