Rosetta Problems

Free Contest 104 - MATRIX

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