Rosetta Problems

Free Contest 10 - FENCE

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