Rosetta Problems

Free Contest 74 - DIAMOND

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