Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98276 刘珩宇 删除数字字符 C++ Accepted 64 MS 1252 KB 432 2024-11-17 18:34:24

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char s[1000001],a,b; int i; cin>>s; for(i=0;s[i]!='\0';i++){ if(s[i]>='0' && s[i]<='9'){ continue; } else{ cout<<s[i]; } } return 0; }