Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
141655 行编辑程序 C++ 编译错误 0 0 MS 0 KB 363 2024-04-06 09:29:39

Tests(0/0):


#include <bits/stdc++.h> using namespace std; stack <char> n; stack <char> tmp; void clean(){ while(!n.size()) n.pop(); } int main(){ char t; while(~getchar(t)){ if(t!='#'&&t!='@') n.push(t); if(t=='#') n.pop(); if(t=='@') clean(); } while(!n.size()){ tmp.push(n.top()); n.pop(); } while(!tmp.size) cout<<tmp.top(),tmp.pop(); }


测评信息: