답안 #542006

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
542006 2022-03-25T06:23:23 Z AJ00 뒤집기 (IOI16_reverse) C++14
100 / 100
31 ms 5788 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
vector<int> reverse(vector<int> a){
    int n = a.size();
    vector<int> ans(n);
    for (int i = 0; i < n; i++){
        ans[n-i-1] = a[i];
    }
  /*  for (int i = 0; i < n; i++){
        cout << ans[i] << " ";
    }*/
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 304 KB Output is correct
4 Correct 1 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 308 KB Output is correct
7 Correct 2 ms 388 KB Output is correct
8 Correct 4 ms 872 KB Output is correct
9 Correct 11 ms 2012 KB Output is correct
10 Correct 31 ms 5788 KB Output is correct