Rosetta Problems

Three Cells per Row and Column

https://atcoder.jp/contests/agc056/tasks/agc056_a