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 <bits/stdc++.h>
using namespace std;
void escape(int n) {
if(n==2){
jump(1);
return;
}
if(jump(0)){
while(true){
if(!jump(1)){
jump(n-1);
break;
}
}
}
else{
while(true){
if(jump(1)){
if(n%2 != 0){
jump(n/2);
}
else{
jump(n/2);
}
break;
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |