| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 118442 | 梁颢城 | 行编辑程序 | C++ | Accepted | 100 | 0 MS | 244 KB | 275 | 2023-12-30 11:26:16 |
#include<bits/stdc++.h> using namespace std; char a[1010]; int main(){ int tmp=1; char b; while(cin>>b){ if(b=='#'){ tmp-=2; if(tmp <= 0) tmp = 0; } else if(b=='@') tmp=0; else a[tmp]=b; tmp++; } for(int i=1;i<=tmp-1;i++) cout<<a[i]; }