Rosetta Problems

Row and Column Order

https://atcoder.jp/contests/arc181/tasks/arc181_c