Rosetta Problems

Black and White Tree

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