Submission #542006

#TimeUsernameProblemLanguageResultExecution timeMemory
542006AJ00Reversing a Sequence (IOI16_reverse)C++14
100 / 100
31 ms5788 KiB
#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; }
#Verdict Execution timeMemoryGrader output
Fetching results...