# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
440000 | Aurora2005 | Reversing a Sequence (IOI16_reverse) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
vector<long long int> A(N);
for(int i=0;i<N;i++) cin >> A[i];
reverse(A.begin(),A.end());
cout << A[0];
for(int i=1;i<N;i++) cout << " " << A[i];
cout << endl;
}