Rosetta Problems

Free Contest 144 - MAGICSUM

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