link:https://www.luogu.com.cn/article/qyla39nb
扯了个莫名其妙的 ST 表,实际上只需要用到(代码中也是这样)LCA 即可。
代码中更新 fff 数组的注释也有问题,更新的并非 ST 表。