답안 #1041377

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1041377 2024-08-02T00:39:27 Z arnavsrivastava0123 뒤집기 (IOI16_reverse) C++14
100 / 100
21 ms 5964 KB
#include <bits/stdc++.h>
#define all(x) x.begin(), x.end()
#define sz(x) x.size()
#define pb push_back
#define ll long long
#define ld long double
#define mp make_pair
#define F first
#define S second
 
using namespace std;


vector<ll> reverse(vector<ll> a){
   int n = a.size();
   vector<ll> b(n);
   for(int i = n - 1, j = 0; i >= 0;i--){
      b[j++] = a[i];
   }
   return b;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 440 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 2 ms 860 KB Output is correct
9 Correct 7 ms 2148 KB Output is correct
10 Correct 21 ms 5964 KB Output is correct