Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157598 汪明轩 删除数字字符 C++ Runtime Error 1 MS 2204 KB 273 2026-08-04 13:21:58

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; char a[1000003]; int main(){ gets(a); int h; int len=strlen(a); for(int i=0;i<len;i++){ if(a[i]>='0'&&a[i]<='9'){ for(int j=len;j>i;j++){ a[j-1]=a[j]; } } } cout<<a; return 0; }


Run Info:

Runtime Error:Segmentation fault