Rosetta Problems

Ribbons on Tree

https://atcoder.jp/contests/arc101/tasks/arc101_c