This problem is in Contest(s) below:
Contest 1292:线性表栈队列堆