#include "grader.h"
#include <stdio.h>
int HC(int N){
int lo = 1, hi = N;
while (lo < hi){
Guess(lo);
int r = Guess(hi);
int mid = (lo + hi) >> 1;
if (r == 0) return mid;
if (r == 1) lo = mid+1;
else hi = (lo + hi - 1) >> 1;
}
return lo;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
806 ms |
8200 KB |
Output is partially correct - alpha = 0.068965517241 |