Submission #541719

#TimeUsernameProblemLanguageResultExecution timeMemory
541719AngusWongLost in the cycle (IOI19_cycle)C++17
100 / 100
2 ms288 KiB
#include "cycle.h" #include <bits/stdc++.h> using namespace std; void escape(int n){ int st=0; for (int i=30; i>=0; i--){ if (jump((st+(1<<i))%n)) st=0; else st=n-(1<<i)%n; } if (st) jump(st); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...