Submission #1308667

#TimeUsernameProblemLanguageResultExecution timeMemory
1308667avahwLost in the cycle (IOI19_cycle)C++20
0 / 100
1 ms332 KiB
#include "cycle.h" void escape(int n) { bool can = jump(1); if(!can){ // go forwards until we can, then go forwards (n / 2) while(true){ bool reach = jump(1); if(reach){ jump(n / 2); break; } } } if(can){ while(true){ bool reach = jump(1); if(!reach){ jump(n / 2); break; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...