This problem is in Contest(s) below:
Contest 1235:栈和队列练习赛
Contest 1500:栈和队列练习赛