This problem is in Contest(s) below:
Contest 1699:栈的应用练习赛
Contest 1939:栈的应用练习赛
Contest 2212:栈的应用练习赛2022
Contest 2444:栈的应用练习赛2023
Contest 1235:栈和队列练习赛
Contest 1500:栈和队列练习赛