# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
542006 | AJ00 | Reversing a Sequence (IOI16_reverse) | C++14 | 31 ms | 5788 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;
#define int long long
vector<int> reverse(vector<int> a){
int n = a.size();
vector<int> ans(n);
for (int i = 0; i < n; i++){
ans[n-i-1] = a[i];
}
/* for (int i = 0; i < n; i++){
cout << ans[i] << " ";
}*/
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |