# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176619 | 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 l=0,r=n-1;
int prev=n;
while(l<r)
{
int mid=(l+r+1)/2;
int x=jump(max((mid-prev+n)%n,1));
if(x) l=mid;
else r=mid-1;
prev=mid;
}
jump(max((l-prev+n)%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... |