Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6232 | 邓小龙 | 删除数字字符 | C++ | Runtime Error | 1998 MS | 1240 KB | 473 | 2025-01-14 14:49:17 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ char s[1000005],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; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275