SHARE
TWEET

Untitled

a guest May 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <vector>
  3. #include <map>
  4. #include <algorithm>
  5. #include <set>
  6. #include <cmath>
  7. #include <fstream>
  8. #include <string>
  9. #include <iomanip>
  10. #include <queue>
  11. #include <stack>
  12. #include <deque>
  13. #include <unordered_map>
  14. #include <unordered_set>
  15.  
  16. using namespace std;
  17.  
  18. #define ll long long
  19. #define f first
  20. #define s second
  21. #define mp make_pair
  22. #define pb push_back
  23. #define forn(i, n) for(int i = 0 ; (i) < (n) ; ++i)
  24. #define all(a) a.begin(), a.end()
  25. #define PI 3.141592653589793238462643383279502884197169399375105820974
  26.  
  27. typedef vector <pair <int ,int > > vpii;
  28. typedef vector <pair <ll ,ll > > vpll;
  29. typedef vector <pair <double ,double > > vpdd;
  30. typedef vector<int> vi;
  31. typedef vector <ll> vl;
  32. typedef vector <char> vc;
  33. typedef vector <double> vd;
  34. typedef pair <int, int> pii;
  35. typedef pair <ll, ll> pll;
  36. typedef pair <double, double> pdd;
  37.  
  38.  
  39. int main() {
  40.  //freopen("input.txt", "r", stdin);
  41.  //freopen("output.txt", "w", stdout);
  42.  ios_base::sync_with_stdio(false);
  43.  cin.tie(0);
  44.  cout.tie(0);
  45.  vector <double> a;
  46.  for(int i = 0; i < 10; i++){
  47.    int x;
  48.    cin >> x;
  49.    a.push_back(x);
  50.  }
  51.  reverse(a.begin(), a.end());
  52.  for(int i = 0; i < 10; i++){
  53.    cout << a[i] << ' ';
  54.  }
  55. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top