Rosetta Problems

Free Contest 139 - CUBE

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