Submission #337672

# Submission time Handle Problem Language Result Execution time Memory
337672 2020-12-21T11:34:21 Z aris12345678 Reversing a Sequence (IOI16_reverse) C++14
0 / 100
1 ms 492 KB
#include <bits/stdc++.h>

using namespace std;

const int mxN = 1e5+5;

vector<long long> reverse(vector<long long> a) {
    int i = 0, j = a.size()-1;
    while(i < j) {
        swap(a[i], a[j]);
        ++i, ++j;
    }
    return a;
}

/*int main() {
    ios::sync_with_stdio(false); cin.tie(0);

}*/
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 492 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -