Rosetta Problems

Blue and Red Tree

https://atcoder.jp/contests/agc014/tasks/agc014_e