Rosetta Problems
← 問題一覧に戻る
無向グラフの閉路検出
無向グラフが与えられ、閉路が存在するか判定し、存在すれば
1
1
1
つ求める。
関連リンク
yosupo/cycle_detection_undirected