Submission #208642

#TimeUsernameProblemLanguageResultExecution timeMemory
208642eriksuenderhaufLost in the cycle (IOI19_cycle)C++17
100 / 100
14 ms424 KiB
#include "bits/stdc++.h" #include "cycle.h" using namespace std; void escape(int n) { int p = n/4 + 1; bool check = jump(0); while(p) { check = jump(check ? p : (n-p)%n); p = (p == 1 ? 0 : (p+1)/2); } if(!check) jump(n-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...