Rosetta Problems

Path Decomposition of a Tree

https://atcoder.jp/contests/abc397/tasks/abc397_e