This problem is in Contest(s) below:
Contest 9505:2026.3-竞赛B-7-栈