试试在判断字符是不是右括号那里,加入 ```cpp if(s.top()=='@') {cout<<"NO"<<endl; return 0;} ``` by xhzzz @ 2023-10-13 00:21:45