Rosetta Problems

Sorting a Matrix

https://atcoder.jp/contests/abc277/tasks/abc277_f