提交时间:2023-10-28 10:25:33
运行 ID: 107806
#include<bits/stdc++.h> using namespace std; inline bool Isnumber(char c) { return (c>='0'&&c<='9'); } int main() { char c; int n; scanf("%d",&n); getchar(); for(int i=1;i<=n;i++) do{ int num=0; while(Isnumber(c=getchar())) num=num*10+c-'0'; cout<<num<<' '; }while(c!='\n'); return 0; }