Rosetta Problems

Pushing Balls

https://atcoder.jp/contests/agc007/tasks/agc007_c