蒟蒻太垃圾了!
#include<iostream> #include<cstdio> #include<bits/stdc++.h> using namespace std; string s; int i; int main(){ cin>>s; for(i=0;i<=s.length();i++){ if(s[i]>='0'&&s[i]<='9'){ cout<<s[i]<<" "; } } return 0; }