This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "cycle.h"
void escape(int n) {
int x = n/2; bool ok = jump(0);
while(x){
ok = ( (ok)? jump(x) : jump(n-x) );
if(x == 1) break;
x = (x+1) / 2;
}
if(!ok) jump(n-1);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |