Rosetta Problems

重み付き Union-Find

NN 個の値に対し、22 値の差の情報の追加と、22 値の差の問い合わせ(定まらない場合はそのことを報告)を処理する。

関連リンク