# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
393574 | 2021-04-24T03:59:03 Z | tinjyu | 뒤집기 (IOI16_reverse) | C++14 | 42 ms | 5808 KB |
#include "reverse.h" #include <iostream> using namespace std; std::vector<long long> reverse(std::vector<long long> a) { for(int i=0;i<a.size()/2;i++) { swap(a[i],a[a.size()-i-1]); } return a; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 1 ms | 204 KB | Output is correct |
3 | Correct | 1 ms | 204 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 1 ms | 204 KB | Output is correct |
6 | Correct | 1 ms | 204 KB | Output is correct |
7 | Correct | 2 ms | 460 KB | Output is correct |
8 | Correct | 5 ms | 844 KB | Output is correct |
9 | Correct | 14 ms | 1972 KB | Output is correct |
10 | Correct | 42 ms | 5808 KB | Output is correct |