Rosetta Problems

Ball Eat Chameleons

https://atcoder.jp/contests/agc021/tasks/agc021_e