Rosetta Problems
← 問題一覧に戻る
永続 Union-Find
過去の任意の版のグラフに辺を追加した新しい版の作成と、指定した版で
2
2
2
頂点が連結かの問い合わせを処理する。
関連リンク
yosupo/persistent_unionfind