#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stdlib.h>
#include <sstream>
#include <cstring>
using namespace std;
/*
* The first Given the N that the number of test cases.
* The following N lines are the N test cases.Each test contains M(1< M < 100)positive integers
*
* 3
* 10 20 30 40
* 7 5 12
* 1 2
* */
int main(int argc, char* argv[])
{
int n;
while(cin >> n) {
getchar();
string str1;
getline(cin, str1);
istringstream istr(str1);
float arr[10];
int m = 0;
while(istr >> arr[m]) {
++m;
}
for (int i = 0;i < m;++i) {
cout << arr[i] << " ";
}
cout << endl;
}
return 0;
}
ACM -特殊数据输入法
最新推荐文章于 2024-08-17 22:00:38 发布