|
| 1 | +#include<bits/stdc++.h> |
| 2 | +using std::cin; |
| 3 | +using std::cout; |
| 4 | +using std::vector; |
| 5 | +using std::string; |
| 6 | +using std::endl; |
| 7 | +/******* All Required define Pre-Processors and typedef Constants *******/ |
| 8 | +#define SCD(t) scanf("%d",&t) |
| 9 | +#define SCLD(t) scanf("%ld",&t) |
| 10 | +#define SCLLD(t) scanf("%lld",&t) |
| 11 | +#define SCC(t) scanf("%c",&t) |
| 12 | +#define SCS(t) scanf("%s",t) |
| 13 | +#define SCF(t) scanf("%f",&t) |
| 14 | +#define SCLF(t) scanf("%lf",&t) |
| 15 | +#define MEM(a, b) memset(a, (b), sizeof(a)) |
| 16 | +#define FOR(i, j, k, in) for (int i=j ; i<k ; i+=in) |
| 17 | +#define RFOR(i, j, k, in) for (int i=j ; i>=k ; i-=in) |
| 18 | +#define REP(i, j) FOR(i, 0, j, 1) |
| 19 | +#define RREP(i, j) RFOR(i, j, 0, 1) |
| 20 | +#define all(cont) cont.begin(), cont.end() |
| 21 | +#define rall(cont) cont.end(), cont.begin() |
| 22 | +#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++) |
| 23 | +#define IN(A, B, C) assert( B <= A && A <= C) |
| 24 | +#define MP make_pair |
| 25 | +#define PB push_back |
| 26 | +#define INF (int)1e9 |
| 27 | +#define EPS 1e-9 |
| 28 | +#define PI 3.1415926535897932384626433832795 |
| 29 | +#define MOD 1000000007 |
| 30 | +#define read(type) readInt<type>() |
| 31 | +const double pi=acos(-1.0); |
| 32 | +typedef long int int32; |
| 33 | +typedef unsigned long int uint32; |
| 34 | +typedef long long int int64; |
| 35 | +typedef unsigned long long int uint64; |
| 36 | + |
| 37 | + |
| 38 | +int main(void){ |
| 39 | + |
| 40 | + //Type your code here |
| 41 | + int n,k; |
| 42 | + scanf("%d",&n); |
| 43 | + vector<int> arr; |
| 44 | + for(int i=0;i<n;i++){ |
| 45 | + SCD(k); |
| 46 | + arr.push_back(k); |
| 47 | + } |
| 48 | + for(int i=n-1;i>=0;i--){ |
| 49 | + cout<<arr.at(i)<<" "; |
| 50 | + } |
| 51 | + return 0; |
| 52 | +} |
| 53 | + |
0 commit comments