This problem is in Contest(s) below:
Contest 1080:长训班高阶数据结构