# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
114752 | kimbj0709 | Reversing a Sequence (IOI16_reverse) | C++17 | 44 ms | 5880 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<bits/stdc++.h>
using namespace std;
vector<long long> reverse (vector<long long> a) {
reverse(a.begin(),a.end());
return a;
vector<long long> t;
long long int size = a.size();
for(long long int i=0;i<a.size();i++){
t.push_back(0);
}
for(long long int i=a.size()-1;i>-1;i--){
t[i] = a[size-i-1];
}
return t;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |