| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 119517 | 陈家宝 | 行编辑程序 | C++ | Accepted | 100 | 0 MS | 256 KB | 385 | 2024-01-08 13:02:10 |
#include<bits/stdc++.h> using namespace std; char s[114514]; int tot=0; bool empty() { return tot==0; } void push(char t) { s[tot++]=t; } void pop() { if(!empty())tot--; } void pop1() { tot=0; } int main() { char t; while(cin >> t){ if(t=='#')pop(); else if(t=='@')pop1(); else push(t); } for(int i=0;i<tot;i++) cout << s[i]; return 0; }