Rosetta Problems

Beginner Free Contest 54 - INCMAT

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