#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
int HC(int n){
int l = 1, r = n;
while(l != r){
//cout << l << " - " << r << endl;
Guess(l);
int g = Guess(r);
int mid = (l + r) >> 1;
if(!g) return mid;
if(g == -1) r = mid;
else l = mid + 1;
}
return l;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
23 ms |
1228 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
1276 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
23 ms |
1228 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
683 ms |
24380 KB |
Output isn't correct - alpha = 0.000000000000 |