| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 118350 | 方文轩 | 行编辑程序 | C++ | Wrong Answer | 92 | 0 MS | 256 KB | 269 | 2023-12-30 08:17:49 |
#include<bits/stdc++.h> using namespace std; char a[100000]; int main(){ int cnt=1; char m;\ while(cin>>m){ if(m=='#'){ cnt-=2; } else if(m=='@'){ cnt=0; } else{ a[cnt]=m; } cnt++; } for(int i=1;i<=cnt-1;i++) cout<<a[i]; }