文章
19
粉丝
0
获赞
148
访问
4.9k
#include<bits/stdc++.h>
using namespace std;
bool Judge(string str){
stack<char> s;
int ls = str.length();
for(int i = 0;i < ls;i++){
if(str[i] == '(' || str[i] == '[')
s.push(str[i]);
if(str[i] == ')'){
if(s.empty())
return false;
if(s.top() == '('){
&...
登录后发布评论
暂无评论,来抢沙发