Rosetta Problems

Shifting a Matrix

https://atcoder.jp/contests/jag2015autumn/tasks/icpc2015autumn_e