| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1369544 | mattarta | Lost in the cycle (IOI19_cycle) | C++20 | 0 ms | 400 KiB |
#include "cycle.h"
void escape(int n) {
bool b = jump(0);
if(!b) b=jump(n/2);
int x=1;
for(; x<n; x*=2);
x/=2;
for(; x>0; x/=2) {
if(b) b = jump(x);
else {
b = jump(n-x);
}
}
if(!jump(0)) jump(n-1);
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
