Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91619 罗迎甲 删除数字字符 C++ Accepted 58 MS 1252 KB 248 2024-09-22 11:13:48

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char str[1000000]; int i; cin>>str; for(i=0;str[i]!='\0';i++){ if(str[i]>='0' && str[i]<='9') continue; else cout<<str[i]; } cout<<endl; return 0; }