Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
61492 刘宇轩 删除数字字符 C++ Wrong Answer 1 MS 268 KB 345 2023-12-09 17:26:23

Tests(0/10):


Code:

#include<iostream> using namespace std; char a[1000001]; int main(){ char b,c; int i=0,n=0; cin>>a; while(a[i]!='\0'){ for(int s=0;s<=n;s++){ if(a[s]>=48&&a[s]<=89){ i++; continue; } cout<<a[s]; i++; } } cout<<a; return 0; }


Run Info:

------Input------
vvvv23kjhg4lllk89766gff
------Answer-----
vvvvkjhglllkgff
------Your output-----
vvvvvvvvvvvvvvvvvvvvvvvvvvv23kjhg4lllk89766gff