This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
// correct/cycle-bk.java
class cycle {
public void escape(int n) {
int p = (n/4)+1;
boolean check = grader.jump(0);
while(p > 0) {
check = grader.jump(check ? p : (n-p)%n);
p = (p == 1 ? 0 : (p+1)/2);
}
if(!check) grader.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... |