Submission #957770

# Submission time Handle Problem Language Result Execution time Memory
957770 2024-04-04T09:58:17 Z hirayuu_oj Lost in the cycle (IOI19_cycle) C++17
0 / 100
1 ms 344 KB
#include "cycle.h"
#include<bits/stdc++.h>
using namespace std;
using ll=long long;

void escape(int n) {
	while(true){
		if(jump(n/2))break;
	}
	ll jmp=1;
	while(jmp*2<=n/2-1){
		jmp*=2;
	}
	while(jmp){
		if(!jump(jmp)){
			jump(n-jmp);
		}
		jmp/=2;
	}
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB The exit was not found.
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 344 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 344 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 0 ms 344 KB Output is correct
9 Incorrect 1 ms 344 KB Too many queries.
10 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB The exit was not found.
3 Halted 0 ms 0 KB -