Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
141654 刘嘉乐 行编辑程序 C++ 通过 100 0 MS 256 KB 359 2024-04-06 09:28:33

Tests(14/14):


#include<bits/stdc++.h> using namespace std; char sta[1000005]; int tot; int main(){ string s; getline(cin,s); for(int i=0;i<s.size();i++){ if(s[i]!='#'&&s[i]!='@')sta[++tot] = s[i]; else if(s[i]=='#'){ if(tot==0){ continue; } tot--; }else{ tot=0; } } for(int i=1;i<=tot;i++){ cout<<sta[i]; } return 0; }


测评信息: