fork download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8. ios_base::sync_with_stdio(false);
  9. cin.tie(NULL);
  10. cout.tie(0);
  11.  
  12. int n;
  13. cin >> n;
  14.  
  15. vector<int> ted(n);
  16.  
  17. for(int i = 0; i < n; i++){
  18. cin >> ted[i];
  19. }
  20.  
  21. for(int i = 0; i < n; i++){
  22. cout << ted[i] << " ";
  23. }
  24. cout << endl;
  25.  
  26. for(int i = 0; i < n; i++){
  27. cout << ted[i] << " ";
  28. }
  29.  
  30. return 0;
  31. }
Success #stdin #stdout 0s 5280KB
stdin
4
20 -80 5 3
stdout
20 -80 5 3 
20 -80 5 3