Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6230 邓小龙 删除数字字符 C++ Runtime Error 1968 MS 1236 KB 473 2025-01-14 14:47:01

Tests(1/10):


Code:

#include<iostream> // cin\cout\endl using namespace std; int main(){ char s[1000002],n=0;//数组不要超过10^8 gets(s); int i=0; while(s[i]!='\0'){ if(s[i]>='0'&&s[i]<='9') {//如果遇到数字,那么剩下的 int j=i; while(s[j]!='\0'){ s[j]=s[j+1]; j++; } continue; } i++; } cout<<s<<endl; return 0; }


Run Info:

Runtime Error:[ERROR] A not allowed system call.
Call ID:275