Submission #1132204

#TimeUsernameProblemLanguageResultExecution timeMemory
1132204bobthescienceLost in the cycle (IOI19_cycle)C++20
100 / 100
0 ms396 KiB
#include "cycle.h" void escape(int n) { int lb = 0, ub = n - 1, mid, pos = 0; while (ub > lb) { mid = (ub + lb + 1)/2; if (jump((mid - pos + n) % n)) lb = mid; else ub = mid - 1; pos = mid; } jump((lb - pos + n) % n); return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...