This problem is in Contest(s) below:
Contest 6665:Ak张老师 算法初级B班 栈模拟 家庭作业