| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 141625 | 吴晨曦 | 行编辑程序 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 315 | 2024-04-06 09:11:33 |
#include <bits/stdc++.h> using namespace std; main() { int now = 0, tot2 = 0; string ans; char t; while (cin >> t) { now++; if (t == '#') now--; else if (t == '@') now = ans.find(' ', tot2), tot2 = now + 1; else ans += t; } for (int i = 0; i < now; i++) cout << ans[i]; }