Rosetta Problems

Ball Transfer

https://atcoder.jp/contests/awc0037/tasks/awc0037_e