fork download
  1. #include <bits/stdc++.h>
  2. #define ull unsigned long long
  3. #define ll long long
  4. #define el endl
  5. #define nl '\n'
  6. #define all(v) v.begin(), v.end()
  7. using namespace std;
  8.  
  9. void input()
  10. {
  11. if (fopen("in.txt", "r"))
  12. {
  13. freopen("in.txt", "r", stdin);
  14. freopen("out.txt", "w", stdout);
  15. }
  16. }
  17.  
  18. void init()
  19. {
  20. ios_base::sync_with_stdio(false);
  21. cin.tie(nullptr);
  22. }
  23. int main()
  24. {
  25. Fast:
  26. input();
  27. init();
  28. //---------------------------------------------------------------------------------------------------------------
  29. int a[20];
  30. for (int i = 0; i < 20; i++)
  31. {
  32. cin >> a[i];
  33. }
  34. reverse(a, a + 20);
  35. for (int i = 0; i < 20; i++)
  36. {
  37. cout << a[i] << ' ';
  38. }
  39.  
  40. return 0;
  41. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
21935 832779173 32767 -2080592152 0 2 0 1 21935 832791161 21935 832790536 5450 -151144543 5450 -148543856 5450 -149430008 0 72703