#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
int HC(int N){
int left= 1,right = N;
int a;
while (left<=right){
int mid = left + (right-left)/2;
a=Guess(mid);
a=Guess(mid+1);
if (a==1)left=mid;
else {
a=Guess(mid-1);
if (a==0)return mid;
else {
a=Guess(mid);
if (a==1)
left = mid+1;
else right=mid-1;
}}
}
return left;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10041 ms |
1228 KB |
Time limit exceeded |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10020 ms |
1228 KB |
Time limit exceeded |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10091 ms |
1228 KB |
Time limit exceeded |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10026 ms |
8044 KB |
Time limit exceeded |