Rosetta Problems

Free Contest 42 - ENCLOSURE

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