Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
118359 唐钧 行编辑程序 C++ Compile Error 0 0 MS 0 KB 340 2023-12-30 08:23:41

Tests(0/0):


#include<bits/stdc++.h> using namespace std; stack<int>q; int main() { char s; while(cin>>s!=) { if(s!='#'&&s!='@') { q.push(s); } else if(s=='#') { q.pop(); } else { while(!q.empty()) { q.pop(); } } } while(!q.empty()) { cout<<q.top(); q.pop(); } return 0; }


Judgement Protocol: