Advertisement
Josif_tepe

Untitled

Mar 1st, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <vector>
  4. #include <queue>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int n;
  10.     cin >> n;
  11.     vector<int> v;
  12.     for(int i = 0; i < n; i++) {
  13.         int a;
  14.         cin >> a;
  15.         v.push_back(a);
  16.     }
  17.     for(int i = 0; i < v.size(); i++) {
  18.         cout << v[i] << " ";
  19.     }
  20.     return 0;
  21. }
  22. /*
  23.  7 5
  24.      
  25.  2 4
  26. -3 3
  27.  
  28.  
  29.  
  30.  7 10
  31.  1 8
  32.  6 7
  33.  6 7
  34.  -1 6
  35.  2 4
  36.  -3 3
  37.  
  38.  **/
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement