# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1041376 | arnavsrivastava0123 | Reversing a Sequence (IOI16_reverse) | C++14 | 1 ms | 348 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>
#define all(x) x.begin(), x.end()
#define sz(x) x.size()
#define pb push_back
#define ll long long
#define ld long double
#define mp make_pair
#define F first
#define S second
using namespace std;
vector<ll> reverse(vector<ll> a){
int n = a.size();
vector<ll> b(n);
for(int i = n - 1, j = 0; i >= 0;i--){
b[j++] = a[j];
}
return b;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |