이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cycle.h"
#include<bits/stdc++.h>
using namespace std;
void escape(int n) {
int j = log2(n);
if ((n&(n-1)) == 0) j--;
bool b = jump(1<<j);
while (true) {
// cout<<j<<" "<<b<<endl;
if (b) {
j--;
if (j < 0) return;
b = jump(1<<j);
} else {
j--;
if (j < 0) {
b = jump(n - (1<<(j+1)));
return;
}
b = jump(n - (1<<(j+1)) + (1<<j));
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |