| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 141651 | 刘嘉乐 | 行编辑程序 | C++ | Wrong Answer | 92 | 0 MS | 264 KB | 322 | 2024-04-06 09:27:18 |
#include<bits/stdc++.h> using namespace std; char sta[1000005]; int tot; int main(){ string s; getline(cin,s); for(int i=0;i<s.size();i++){ if(s[i]!='#'&&s[i]!='@')sta[++tot] = s[i]; else if(s[i]=='#'){ tot--; }else{ tot=0; } } for(int i=1;i<=tot;i++){ cout<<sta[i]; } return 0; }