SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<vector>
  2. #include<iostream>
  3. #include<cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.     size_t m, n, need = 0;
  9.     cin >> m;
  10.     vector < vector < string > > v(1000, vector < string > (m));
  11.  
  12.     for (size_t i = 0; i < m; i++) {
  13.         cin >> n;
  14.         for (size_t j = 0; j < n; j++) {
  15.             cin >> v[j][i];
  16.         }
  17.         need = max(need, n);
  18.     }
  19.  
  20.     for (size_t i = 0; i < need; i++) {
  21.         for (size_t j = 0; j < m; j++) {
  22.             cout << v[i][j] << '\t';
  23.         }
  24.         cout << endl;
  25.     }
  26.     return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top