Rosetta Problems

Grid Coloring 2

https://atcoder.jp/contests/abc347/tasks/abc347_g