답안 #1089740

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1089740 2024-09-17T05:09:57 Z vibeslayer 뒤집기 (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;
//}
# 결과 실행 시간 메모리 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