#include "grader.h"
int HC(int N){
int lo = 1;
int hi = N;
while(lo < hi){
Guess(lo);
int r = Guess(hi);
if(r > 0){
lo = (lo + hi)/2 + 1;
}else{
hi = (lo + hi)/2;
}
}
return lo;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
31 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
37 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
28 ms |
1272 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
802 ms |
8184 KB |
Output isn't correct - alpha = 0.000000000000 |