This problem is in Contest(s) below:
Contest 1091:数据结构强化练习题