This blog is to discuss the problems of Northwestern Russia Regional Contest round 2019 held on October 26.
The problems: https://neerc.ifmo.ru/archive/2019/northern/northwest-russia-2019-statements.pdf
What was your approach on problem B (Bad Treap) ?