Submission #490428

#TimeUsernameProblemLanguageResultExecution timeMemory
490428PiejanVDCLost in the cycle (IOI19_cycle)C++17
100 / 100
1 ms328 KiB
#include <bits/stdc++.h> #include "cycle.h" using namespace std; void escape(int n) { int rem=0; int pw = 1; while(pw < n) pw*=2; pw/=2; for(int i = pw ; i >= 1 ; i/=2) { if(!jump(i + rem)) { rem = n - i; } else rem=0; } if(rem) jump(rem); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...