Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <sstream>
- #include <vector>
- using namespace std;
- int main() {
- char line[32700];
- int T;
- scanf("%d", &T);
- getchar();
- vector< int > v;
- while(T--) {
- gets(line);
- stringstream ss( line );
- int num;
- while( ss >> num ) v.push_back( num );
- }
- int len = v.size();
- for (int i = 0; i<len; i++) printf("%d ", v[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment