# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
836067 | 2023-08-24T06:52:55 Z | Alihan_8 | Roller Coaster Railroad (IOI16_railroad) | C++17 | 45 ms | 7232 KB |
#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
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | n = 2 |
2 | Incorrect | 0 ms | 212 KB | answer is not correct: 1 instead of 0 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | n = 2 |
2 | Incorrect | 0 ms | 212 KB | answer is not correct: 1 instead of 0 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 30 ms | 3400 KB | n = 199999 |
2 | Incorrect | 45 ms | 7232 KB | answer is not correct: 0 instead of 1 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | n = 2 |
2 | Incorrect | 0 ms | 212 KB | answer is not correct: 1 instead of 0 |
3 | Halted | 0 ms | 0 KB | - |