Rosetta Problems

Ball and Box

https://atcoder.jp/contests/arc186/tasks/arc186_c