Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163415 汪义罗 删除数字字符 C++ Accepted 89 MS 3184 KB 257 2026-10-25 12:09:56

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string n; char a,b; cin>>n; cin>>a>>b; int i=0; while(n[i]!='\0'){ if(n[i]>='0' and n[i]<='9'){ i++; continue; }else{ cout<<n[i]; i++; } } return 0; }