Submission #1089740

# Submission time Handle Problem Language Result Execution time Memory
1089740 2024-09-17T05:09:57 Z vibeslayer Reversing a Sequence (IOI16_reverse) C++17
100 / 100
22 ms 5976 KB
#include "reverse.h"

#include <bits/stdc++.h>
using namespace std;

vector<long long> reverse(vector<long long> arr) {
    reverse(begin(arr), end(arr));
    return arr;
}

//int main() {
//    int n; cin >> n;
//    vector<long long> arr(n);
//    for (long long &x : arr) cin >> x;
//
//    arr = reverse(arr);
//
//    for (auto x : arr) cout << x << " ";
//    cout << endl;
//}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 3 ms 964 KB Output is correct
9 Correct 7 ms 2136 KB Output is correct
10 Correct 22 ms 5976 KB Output is correct