# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176594 | adkjt | Lost in the cycle (IOI19_cycle) | C++20 | 0 ms | 408 KiB |
#include "cycle.h"
#include<bits/stdc++.h>
using namespace std;
void escape(int n) {
int r=(n+1)/2;
bool x=jump(r);//cout<<r<<' '<<x<<'\n';
r/=2;
while(r>0)
{//cout<<r<<' '<<x<<'\n';
if(x) x=jump(r);
else x=jump(n-r);
r/=2;
}
if(!x) 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... |