#include <bits/stdc++.h>
#include "cycle.h"
using namespace std;
void escape(int n) {
int rem=0;
for(int i = n/2 ; i >= 1 ; i/=2) {
if(!jump(i + rem)) {
rem = n - i;
} else rem=0;
}
if(rem) jump(rem);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Incorrect |
1 ms |
200 KB |
The exit was not found. |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
220 KB |
The exit was not found. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Incorrect |
1 ms |
200 KB |
The exit was not found. |
4 |
Halted |
0 ms |
0 KB |
- |