Submission #1289464

#TimeUsernameProblemLanguageResultExecution timeMemory
1289464BlockOGLost in the cycle (IOI19_cycle)C++20
33 / 100
1 ms428 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) / 2; if (jum(mid)) r = mid; else l = mid + 1; } if (l == 0 && jum(n - 1)) l = n - 1; jum(l + n / 2); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...