#include "grader.h"
using namespace std;
int HC(int N){
int l=1,r=N,kq=N,x;
x=Guess(N);
while (l<=r){
int mid=(l+r)/3;
x=Guess(3);
if (x==0)
return (mid+r)/2;
if (x==1){
r=mid;
kq=mid;
continue;
}
l=(mid+r+1)/2;
}
return kq;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
28 ms |
17708 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
28 ms |
17688 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
28 ms |
17752 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
467 ms |
156912 KB |
Output isn't correct - alpha = 0.000000000000 |