Run ID:81967
提交时间:2024-07-12 16:28:13
#include<iostream> #include<cstring> using namespace std; char s[1000000]; int main(){ cin.getline(s,1000000); int s_l = strlen(s); for(int i=0;i<s_l;i++){ if(s[i]>'9' || s[i]<'0'){ //不是数字的判断 cout<<s[i]; } } return 0; }