Rosetta Problems

Free Contest 139 - ZIGZAGTREE

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