Rosetta Problems

Perfect Suika Game on a Tree

https://atcoder.jp/contests/utpc2024/tasks/utpc2024_p