Submission #255460

#TimeUsernameProblemLanguageResultExecution timeMemory
255460themax23Lost in the cycle (IOI19_cycle)C++17
100 / 100
1 ms256 KiB
#include "cycle.h" #include <bits/stdc++.h> void escape(int n) { int x = n/2; bool ok = jump(0); while(x > 0){ if(ok) ok = jump(x); else ok = jump(n - x); if(x == 1) break; x = (x+1) / 2; } if(!ok) jump(n-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...