Submission #226576

# Submission time Handle Problem Language Result Execution time Memory
226576 2020-04-24T11:09:47 Z jiahng Hotter Colder (IOI10_hottercolder) C++14
0 / 100
755 ms 136780 KB
#include "grader.h"
#include <bits/stdc++.h>
int HC(int N){
	
	int l = 0, r = N;
	Guess((l + r)/2);
	
	while (l+1 < r){
		int mid = (l+r)/2;
		int mid2 = (l+mid)/2;
		
		int res = Guess(mid2);
		if (res == 0){
			std::cout<<(mid+mid2)/2;
			return (mid + mid2)/2;
		}else if (res == -1) l = mid;
		else r = mid;	
	}
	return l;
}
# Verdict Execution time Memory Grader output
1 Incorrect 42 ms 14456 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 42 ms 14456 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 43 ms 14456 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 755 ms 136780 KB Output isn't correct - alpha = 0.000000000000