Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
141625 吴晨曦 行编辑程序 C++ 解答错误 0 0 MS 248 KB 315 2024-04-06 09:11:33

Tests(0/14):


#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]; }