Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
141658 mairuisheng 行编辑程序 C++ 通过 100 0 MS 248 KB 373 2024-04-06 09:32:59

Tests(14/14):


#include<bits/stdc++.h> using namespace std; long long he=0,he2=0; char a[10005],b; int main() { while(cin>>b) { if(b!='#'&&b!='@') { a[he++]=b; } else if(b=='#') { if(!he==0) { he--; } } else if(b=='@') { if(!he==0) { he=0; } } } while(!he==0) { cout<<a[he2++]; he--; } return 0; }


测评信息: