Rosetta Problems

Grid Repainting

https://atcoder.jp/contests/abc088/tasks/abc088_d