不通过前缀栈相同就为合法的性质来做的,题解区应该没有这种做法,请求添加题解。
https://www.luogu.com.cn/blog/vegetable-MLE/p9753-csp-s-2023-xiao-xiao-le-ti-xie