This problem is in Contest(s) below:
Contest 1043:队列应用过关习题集(一)