Rosetta Problems

Free Contest 11 - DIAMOND

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