Rosetta Problems

Free Contest 105 - MAXREM

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