Submission #255750

#TimeUsernameProblemLanguageResultExecution timeMemory
255750cjoaLost in the cycle (IOI19_cycle)C++17
11 / 100
0 ms256 KiB
#include "cycle.h" #include <cstdio> #include <cassert> void escape(int n) { if (n == 2) { jump(1); return; } if ( jump(0) ) { // estoy del lado derecho de la mitad while ( jump(1) == true ); jump( n-1 ); } else { // estoy del lado izquierdo de la mitad while ( jump(1) == false ) ; jump( n/2 ); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...