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