Submission #23988

# Submission time Handle Problem Language Result Execution time Memory
23988 2017-05-28T17:57:24 Z gs14004 Reversing a Sequence (IOI16_reverse) C++11
100 / 100
39 ms 5120 KB
#include "reverse.h"
#include <vector>


std::vector<long long> reverse (std::vector<long long> a) {
    std::vector<long long> r;
    for(int i=a.size()-1; i>=0; i--){
        r.push_back(a[i]);
    }
    return r;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1932 KB Output is correct
2 Correct 0 ms 1932 KB Output is correct
3 Correct 0 ms 1932 KB Output is correct
4 Correct 0 ms 1932 KB Output is correct
5 Correct 0 ms 1932 KB Output is correct
6 Correct 0 ms 1932 KB Output is correct
7 Correct 0 ms 2064 KB Output is correct
8 Correct 6 ms 2360 KB Output is correct
9 Correct 16 ms 2896 KB Output is correct
10 Correct 39 ms 5120 KB Output is correct