#include "grader.h"
int HC(int N){
int l=1,r=N;
int pivot=1;
while(l<r){
Guess(pivot);
int mid=(l+r)/2;
int res=Guess(mid+1);
if(res==-1){
r=mid;
}
else if(res==1){
l=mid+1;
}
}
return ((pivot+l)/2);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10059 ms |
2908 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10057 ms |
2908 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10051 ms |
2908 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10041 ms |
8020 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |