Submission #143404

#TimeUsernameProblemLanguageResultExecution timeMemory
143404model_codeLost in the cycle (IOI19_cycle)C++17
100 / 100
3 ms424 KiB
// model_solution/cycle-bk.cpp #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...