Rosetta Problems

Free Contest 4 - GATHER

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