Submission #1289460

#TimeUsernameProblemLanguageResultExecution timeMemory
1289460BlockOGLost in the cycle (IOI19_cycle)C++20
0 / 100
1 ms332 KiB
#include <bits/stdc++.h> // meeeooowwwww mrrowwww :3 // go play vivid/stasis!! now!!!! https://vividstasis.gay #define fo(i, a, b) for (auto i = (a); i < (b); i++) #define of(i, a, b) for (auto i = (b); i-- > (a);) #define f first #define s second #define pb push_back #define lb lower_bound #define ub upper_bound #define be(a) a.begin(), a.end() using namespace std; int ____init = []{ ios::sync_with_stdio(false); cin.tie(NULL), cout.tie(NULL); return 0; }(); bool jump(int x); int n, i; bool jum(int x) { bool res = jump((n + x - i) % n); i = x; return res; } void escape(int _n) { n = _n, i = 0; int l = 0, r = n - 1; while (l < r) { int mid = (l + r + 1) / 2; if (jump(mid)) r = mid - 1; else l = mid; } jump((n + 1) / 2); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...