格式型嘉豪:三行极限过
2026-08-02 14:24:54
发布于:湖北
7阅读
0回复
0点赞
LLL,看我黑客搭路
#include <iostream>
#include <deque>
using namespace std; deque<char> str; char readch; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); while (cin >> readch) { if (readch == '@') { if (!str.empty()) str.pop_back(); } else { str.push_back(readch); } } for (int i = 0; i < str.size(); i++) { cout << str[i]; } return 0; }
全部评论 1
万能头还少一行

4天前 来自 安徽
0








有帮助,赞一个