#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;
}
# |
결과 |
실행 시간 |
메모리 |
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 |