#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;
}
}
return st;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
22 ms |
1296 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
20 ms |
1236 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
21 ms |
1296 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
552 ms |
8084 KB |
Output isn't correct - alpha = 0.000000000000 |