Submission #1132213

#TimeUsernameProblemLanguageResultExecution timeMemory
1132213AMel0nLost in the cycle (IOI19_cycle)C++20
0 / 100
0 ms396 KiB
#include "cycle.h" void escape(int n) { if(n == 2) {jump(1); return;} if (!jump(0)) { if (!jump(n/2)) jump((n/2) * 2); else jump(n/2); } int l = 0; int r = n; while (l != r -1) { int m = (l + r) / 2; if (jump(m)) l = m; else r = m; } jump(l); return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...