Rosetta Problems
← yosupo に戻る
Lowest Common Ancestor
https://judge.yosupo.jp/problem/lca
対応するローカル問題
最小共通祖先 (LCA)