#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
int HC(int n){
int st = 1;
int dr = n;
while(st <= dr){
Guess(st);
int x = Guess(dr);
int mij = (st + dr) / 2;
if(x == 0)
return mij;
else if(x == 1){
st = mij + 1;
}
else if(x == -1){
dr = mij - 1;
}
}
return st;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
24 ms |
4180 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
24 ms |
4112 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
23 ms |
4084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
562 ms |
31476 KB |
Output isn't correct - alpha = 0.000000000000 |