Rosetta Problems

Painting Balls with AtCoDeer

https://atcoder.jp/contests/abc046/tasks/abc046_b