Rosetta Problems

Merge the balls

https://atcoder.jp/contests/abc351/tasks/abc351_c