Rosetta Problems

Grid Repainting 4

https://atcoder.jp/contests/arc131/tasks/arc131_b