Submission #255461

#TimeUsernameProblemLanguageResultExecution timeMemory
255461themax23Lost in the cycle (IOI19_cycle)C++17
100 / 100
1 ms384 KiB
#include "cycle.h"
void escape(int n) {
	int x = n/2; bool ok = jump(0);
	while(x){
		ok = ( (ok)? jump(x) : jump(n-x) );
		if(x == 1) break;
		x = (x+1) / 2;
	}
		if(!ok) jump(n-1);
}	
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...