抄代码专用
#include<iostream> #include<string> using namespace std; int main(){ freopen("qwq.cpp","r",stdin); freopen("std.cpp","w",stdout); string s; while(getline(cin,s)){ int i; for(i = 0; i < s.size(); i++){ if(s[i]==' ')continue; if(s[i]<'0'||s[i]>'9')break; } cout<<(s.substr(i,s.size()-i+1))<<'\n'; } return 0; }