跳转至

st 表求 lca 没有特判

使用 st 表实现 \(O(1)\) 求 lca 时,一定要特判 \(x=y\) 的情况。

\[ 100pts\rightarrow 60pts \]