# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1132197 | bobthescience | Lost in the cycle (IOI19_cycle) | C++20 | 0 ms | 396 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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |