Rosetta Problems
← 問題一覧に戻る
補グラフの連結成分
無向グラフが与えられ、その補グラフを連結成分に分解する。
関連リンク
yosupo/connected_components_of_complement_graph