#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
int HC(int n){
int a = 1;
int b = n;
while (b > a)
{
int mid = (a + b) / 2;
Guess(mid);
int q = Guess(mid + 1);
if (q == 1)
{
a = mid + 1;
} else
{
b = mid;
}
}
return a;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
21 ms |
1260 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
21 ms |
1260 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
21 ms |
1260 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
615 ms |
8296 KB |
Output isn't correct - alpha = 0.000000000000 |