Submission #498028

#TimeUsernameProblemLanguageResultExecution timeMemory
498028evenvalueReversing a Sequence (IOI16_reverse)C++17
100 / 100
31 ms5900 KiB
//#include "reverse.h" #include <algorithm> #include <array> #include <cassert> #include <chrono> #include <cmath> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; using int64 = int64_t; using ld = long double; [[maybe_unused]] int readInt() { int x; cin >> x; return x; } [[maybe_unused]] int64 readInt64() { int64 x; cin >> x; return x; } [[maybe_unused]] string readString() { string s; cin >> s; return s; } [[maybe_unused]] double readDouble() { return stod(readString()); } [[maybe_unused]] ld readLongDouble() { return stold(readString()); } template<typename T1, typename T2> [[maybe_unused]] pair<T1, T2> readPair() { pair<T1, T2> p; cin >> p.first >> p.second; return p; } template<typename T> [[maybe_unused]] vector<T> readVec(const int sz) { vector<T> v(sz); for (T &x : v) { cin >> x; } return v; } template<typename T> [[maybe_unused]] vector<vector<T>> readVecVec(const int n, const int m) { vector<vector<T>> a(n); for (vector<T> &v : a) { v = readVec<T>(m); } return a; } const int64 kInf64 = 2e18 + 10; const int kInf = 1e9 + 10; const int kMod = 1e9 + 7; vector<long long> reverse(vector<long long> a) { reverse(a.begin(), a.end()); return a; }
#Verdict Execution timeMemoryGrader output
Fetching results...