Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
143847 陈家宝 行编辑程序 C++ 通过 100 0 MS 256 KB 363 2024-04-19 13:17:01

Tests(14/14):


#include<bits/stdc++.h> using namespace std; char s[114514],t; int tot=0; bool empty(){ return tot==0; } void push(char p){ s[tot++]=p; } void pop(){ if(!empty())tot--; } void pop1(){ tot=0; } int main(){ while(cin >> t){ if(t=='#')pop(); else if(t=='@')pop1(); else push(t); } for(int i=0;i<tot;i++)cout << s[i]; return 0; }


测评信息: