#include "grader.h"
#include <bits/stdc++.h>
typedef long long ll;
int HC(int N){
ll l = 1, r = N;
if (N == 2){
Guess(1);
if (Guess(2) == -1) return 1;
else return 2;
}
while (l < r){
int mid = (l+r)/2;
Guess(mid);
//std::cout<<l<<' '<<r<<'\n';
int res = Guess(mid+1);
if (res == -1) r = mid;
else l = mid+1;
}
return l;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
28 ms |
1280 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
29 ms |
1280 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
29 ms |
1400 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
761 ms |
8324 KB |
Output isn't correct - alpha = 0.000000000000 |