#include<iostream>
using namespace std;
stack<char>s;
string str;
int main()
{
getline(cin,str);
for(int i=0;i<str.size();i++){
if(str[i]=='@') break;
if(str[i]=='(') s.push(str[i]);
if(str[i]==')'){
if(s.empty()){
cout<<"NO";
return 0;
}
else s.pop();
}
}
if(!s.empty()) cout<<"NO";
else cout<<"YES";
return 0;
}
08-08
09-21
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交