Submission #816376

# Submission time Handle Problem Language Result Execution time Memory
816376 2023-08-09T04:56:34 Z Diana10Bello Lost in the cycle (IOI19_cycle) C++14
0 / 100
1 ms 208 KB
#include "cycle.h"
#include <bits/stdc++.h>

void escape(int n) {
	if(jump(0)){
		while(true){
			if(!jump(1)){
				jump(n-1);
				break;
			}
		}
	}
	else{
		while(true){
			if(jump(1)){
				jump(n/2);
				break;
			}
		}
	}
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 208 KB Output is correct
2 Incorrect 0 ms 208 KB Too many queries.
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 208 KB Output is correct
2 Correct 0 ms 208 KB Output is correct
3 Correct 0 ms 208 KB Output is correct
4 Incorrect 1 ms 208 KB Too many queries.
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 208 KB Output is correct
2 Incorrect 0 ms 208 KB Too many queries.
3 Halted 0 ms 0 KB -