#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
int Guess (int x);
int HC(int N){
int st=1,dr=N;
Guess(st);
int a = Guess(dr);
while(st!=dr){
int mij = (st+ dr) >> 1;
if(a==-1)
dr= mij;
else if(a==1)//close to l
st = mij + 1;
else return mij;
Guess(st);
a = Guess(dr);
}
return st;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
20 ms |
1300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
22 ms |
1296 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
20 ms |
1304 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
539 ms |
8104 KB |
Output isn't correct - alpha = 0.000000000000 |