文章
93
粉丝
57
获赞
302
访问
49.8k
#include <bits/stdc++.h> using namespace std;
int main() { string str; while(cin>>str) { stack<char> s; int a=str.size(); for(int i=0;i<a;i++) { if(str[i]=='>') { if(s.top()=='<') { s.pop(); } else &...
登录后发布评论
暂无评论,来抢沙发