Submission #145189

#TimeUsernameProblemLanguageResultExecution timeMemory
145189ecnerwalaLost in the cycle (IOI19_cycle)C++14
100 / 100
4 ms424 KiB
#include "cycle.h" void escape(int n) { int st = 1, en = n; while (en - st > 1) { int md = (st + en) / 2; if (jump(md)) { st = 0, en = en - md; } else { st = n - md + st; en = n; } } if (st) { jump(st); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...