#include "cycle.h"
#include <bits/stdc++.h>
void escape(int n) {
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-1);
}
break;
}
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
208 KB |
Output is correct |
2 |
Incorrect |
1 ms |
208 KB |
Too many queries. |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
208 KB |
Output is correct |
2 |
Correct |
0 ms |
208 KB |
Output is correct |
3 |
Correct |
0 ms |
208 KB |
Output is correct |
4 |
Incorrect |
1 ms |
208 KB |
Too many queries. |
5 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
208 KB |
Output is correct |
2 |
Incorrect |
1 ms |
208 KB |
Too many queries. |
3 |
Halted |
0 ms |
0 KB |
- |