#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
int HC(int n){
Guess(n);
int p=1, k=n;
while(p<k) {
int sr=(p+k)/2;
int x=Guess(sr);
if(x==0) p=k=sr;
else if(x==1) p=sr+1;
else k=sr-1;
}
return p;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
33 ms |
17872 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
32 ms |
17808 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
35 ms |
17792 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
557 ms |
157080 KB |
Output isn't correct - alpha = 0.000000000000 |