Submission #836067

#TimeUsernameProblemLanguageResultExecution timeMemory
836067Alihan_8Roller Coaster Railroad (IOI16_railroad)C++17
0 / 100
45 ms7232 KiB
#include <bits/stdc++.h> using namespace std; #define all(x) x.begin(), x.end() #define pb push_back #define ln '\n' //#define int long long using i64 = long long; template <class F, class _S> bool chmin(F &u, const _S &v){ bool flag = false; if ( u > v ){ u = v; flag |= true; } return flag; } template <class F, class _S> bool chmax(F &u, const _S &v){ bool flag = false; if ( u < v ){ u = v; flag |= true; } return flag; } const i64 inf = 1e16 + 1; mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); i64 plan_roller_coaster(vector<int> s, vector<int> t) { int n = (int)s.size(); return rng() & 1; }

Compilation message (stderr)

railroad.cpp: In function 'i64 plan_roller_coaster(std::vector<int>, std::vector<int>)':
railroad.cpp:35:9: warning: unused variable 'n' [-Wunused-variable]
   35 |     int n = (int)s.size();
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...