nq1s788

считывание вектора

Jul 25th, 2025
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include <iostream>
  2. #include <set>
  3. #include <vector>
  4. #include <deque>
  5. #include <map>
  6. #include <cmath>
  7.  
  8. #define se second
  9. #define fi first
  10. #define mp make_pair
  11. #define pb push_back
  12.  
  13. typedef long long ll;
  14. typedef long double ld;
  15.  
  16. using namespace std;
  17.  
  18. int main() {
  19.     int n;
  20.     cin >> n;
  21.     vector<int> a;
  22.     for (int i = 0; i < n; i++) {
  23.         int x;
  24.         cin >> x;
  25.         a.push_back(x);
  26.     }
  27.  
  28.     int m;
  29.     cin >> m;
  30.     vector<int> b(m);
  31.     for (int i = 0; i < m; i++) {
  32.         cin >> b[i];
  33.     }
  34.  
  35.     int k;
  36.     cin >> k;
  37.     vector<int> c(k);
  38.     for (auto& e : c) cin >> e;
  39.     return 0;
  40. }
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment