#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
int HC(int N_){
int l = 1; int r = N_;
int g = r;
Guess(l);
int res;
while(true){
int k = Guess(g);
int mid = (l+r)/2;
if(k == 0){
res = mid;
break;
}else if(k == 1){
if(g != r){
Guess(r);
}
l = mid;
g = l;
}else{
if(g != l){
Guess(l);
}
r = mid;
g = r;
}
}
return res;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10029 ms |
6744 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10086 ms |
6744 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10040 ms |
6720 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10092 ms |
24400 KB |
Time limit exceeded |