Rosetta Problems

ボールの移動 (Moving Balls)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1576