# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
64894 | qkxwsm | Reversing a Sequence (IOI16_reverse) | C++17 | 87 ms | 7176 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.
/*
PROG: source
LANG: C++11
_____
.' '.
/ 0 0 \
| ^ |
| \ / |
\ '---' /
'._____.'
*/
// #include <bits/stdc++.h>
// #include <ext/pb_ds/tree_policy.hpp>
// #include <ext/pb_ds/assoc_container.hpp>
#include "reverse.h"
#include <vector>
using namespace std;
typedef long long ll;
vector<ll> reverse(vector<ll> v)
{
vector<ll> res(v.size());
for (int i = 0; i < v.size(); i++)
{
res[i] = v[v.size() - 1 - i];
}
return res;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |