#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
int HC(int N)
{
int l = 1, r = N;
while (l < r)
{
int mid = (l + r) / 2;
Guess(l);
int res = Guess(r);
if (!res) return mid;
else if (~res) l = mid + 1;
else r = mid;
}
return l;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
23 ms |
1260 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
23 ms |
1260 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
23 ms |
1260 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
693 ms |
24592 KB |
Output isn't correct - alpha = 0.000000000000 |