Submission #1132197

#TimeUsernameProblemLanguageResultExecution timeMemory
1132197bobthescienceLost in the cycle (IOI19_cycle)C++20
0 / 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)/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...