#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
int HC(int N){
int left= 1,right = N;
int a;
while (left<=right){
int mid = left + (right-left)/2;
a=Guess(mid);
a=Guess(mid+1);
if (a==1)left=mid+1;
else {
a=Guess(mid-1);
if (a==0)return mid;
else {
a=Guess(mid);
if (a==1)
left = mid+1;
else right=mid;
}}
}
return left;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
27 ms |
1404 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
32 ms |
1404 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
27 ms |
1348 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
807 ms |
8176 KB |
Output isn't correct - alpha = 0.000000000000 |