Advertisement
Josif_tepe

Untitled

Mar 31st, 2024
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     int n;
  8.     cin >> n;
  9.     vector<int> v;
  10.     for(int i = 0; i < n; i++) {
  11.         int x;
  12.         cin >> x;
  13.        
  14.         v.push_back(x);
  15.     }
  16.    
  17.     cout << v.size() << endl;
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement