Rosetta Problems

Free Contest 117 - RMATRIX

https://oj.vnoi.info/problem/fc117_rmatrix