Rosetta Problems

Inversion Numbers of Tree

https://atcoder.jp/contests/ttpc2019/tasks/ttpc2019_m