Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120940 | 任艺宸 | 删除数字字符 | C++ | Runtime Error | 1 MS | 264 KB | 457 | 2025-06-02 12:26:30 |
#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 n[200]={},a; scanf("%s",n); for(int a=0;n[a]!='\0';a++){ if(n[a]>='0'&&n[a]<='9') continue; else cout<<n[a]; } cout<<endl; return 0; }
Runtime Error:Segmentation fault