题解
2025-09-06 15:27:10
发布于:北京
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
char a[1919];
int top=0;
int main(){
string x;
while(getline(cin,x)){
for(int i=0;i<x.size();i++){
if(x[i]'#'){
if(top>0) top--;
}else if(x[i]'@'){
top=0;
}else{
a[top]=x[i];
}
}for(int i=1;i<=top;i){
cout<<a[i];
}cout<<'\n';
top=0;
}
return 0;
}
这里空空如也
有帮助,赞一个