Rosetta Problems
← 問題一覧に戻る
木の距離の頻度表
木が与えられ、各
d
d
d
について距離が
d
d
d
である頂点対の個数を求める。
関連リンク
yosupo/frequency_table_of_tree_distance