Submission #146545

#TimeUsernameProblemLanguageResultExecution timeMemory
146545tjd229Lost in the cycle (IOI19_cycle)C++14
33 / 100
2 ms376 KiB
#include "cycle.h" void escape(int n) { int half = n >> 1; int prev = 0; int l = 0, r = n - 1; int toM = -1; while (l <= r) { int m = (l + r) >> 1; if (jump((n - prev + m) % n)) { r = m - 1; toM = m; } else l = m + 1; prev = m; } jump((n-prev+toM+half)%n); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...