Submission #231087

# Submission time Handle Problem Language Result Execution time Memory
231087 2020-05-12T16:24:42 Z Dilshod_Imomov Hotter Colder (IOI10_hottercolder) C++17
0 / 100
794 ms 8312 KB
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
int HC(int N){
	if ( N == 1 ) {
		return 1;
	}
	int l = 1, r = N;
	while ( r - l > 1 ) {
		int md = (l + r) / 2;
		Guess((l + md) / 2);
		int y = Guess((md + r) / 2);
		if ( y == 1 ) {
			l = md;
		}
		else if ( y == -1 ) {
			r = md;
		}
		else {
			return md;
		}
	}
	return l;
}
# Verdict Execution time Memory Grader output
1 Incorrect 28 ms 1408 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 1408 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 1408 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 794 ms 8312 KB Output isn't correct - alpha = 0.000000000000