Submission #310939

# Submission time Handle Problem Language Result Execution time Memory
310939 2020-10-08T17:01:39 Z LucaDantas Hotter Colder (IOI10_hottercolder) C++17
25 / 100
770 ms 24576 KB
#include "grader.h"
#include<cassert>

int guess(int a, int b) {
	Guess(a);
	return Guess(b);
}

int HC(int n){
	int l = 1, r = n;
	while(l <= r) {
		int ans = guess(l, r);
		if(!ans) return (l+r) >> 1;
		if(ans == 1) l = (l+r+1) >> 1;
		else r = (l+r-1) >> 1;
	}
	assert(0);
}
# Verdict Execution time Memory Grader output
1 Correct 23 ms 1280 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 1280 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 1280 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 770 ms 24576 KB Output isn't correct - alpha = 0.000000000000