# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
170341 | ngmh | Reversing a Sequence (IOI16_reverse) | C++11 | 50 ms | 5996 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 "reverse.h"
#include <vector>
#include <algorithm>
std::vector<long long> reverse (std::vector<long long> a) {
for(int i = 0; i < a.size()/2; i++){
long long temp = a[i];
a[i] = a[a.size()-i-1];
a[a.size()-i-1] = temp;
}
return a;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |