Advertisement
Ilya_konstantinov

CRC1

Apr 13th, 2024 (edited)
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. #include <vector>
  4.  
  5. using std::string;
  6. using std::cin;
  7. using std::cout;
  8. using std::vector;
  9.  
  10. #include "c1.h"
  11.  
  12. int main() {
  13.   int n; cin >> n;
  14.   vector<int> v(n);
  15.   for (int & el : v) cin >> el;
  16.   int q, k; cin >> q;
  17.   while(q--) {
  18.     cin >> k;
  19.     print(v, k);
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement