#include "grader.h"
int HC(int n){
int ini = 1, fim = n , meio, ans = -1;
if(n == 1) return 1;
while(ini<fim){
meio = (ini + fim) >> 1;
int a = Guess(meio);
a = Guess(meio+1);
if(a == 1){
ini = meio+1;
ans = ini;
}
else{
fim = meio;
ans = fim;
}
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
25 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
25 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
24 ms |
1276 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
655 ms |
23560 KB |
Output isn't correct - alpha = 0.000000000000 |