| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61498 | 李明择 | 删除数字字符 | C++ | Wrong Answer | 1 MS | 276 KB | 314 | 2023-12-09 17:29:19 |
#include<iostream> using namespace std; int main(){ char a[1000000]; cin>>a; int i=0; while(a[i]!='\0'){ if(a[i]=='1'||a[i]=='2'||a[i]=='3'||a[i]=='4'||a[i]=='5'||a[i]=='6'||a[i]=='7'||a[i]=='8'||a[i]=='9'){ i++; continue; } else{ cout<<a[i]; i++; } } return 0; }
------Input------
1ac8908ABBBCGDFSG
------Answer-----
acABBBCGDFSG
------Your output-----
ac0ABBBCGDFSG