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"
#include <cstdio>
#include <cassert>
void escape(int n) {
if (n == 2) {
jump(1);
return;
}
if ( jump(0) ) {
// estoy del lado derecho de la mitad
while ( jump(1) == true );
jump( n-1 );
}
else {
// estoy del lado izquierdo de la mitad
while ( jump(1) == false ) ;
jump( n/2 );
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |