This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "grader.h"
int HC(int N){
int l = 1, r = N, m1, m2, t;
while (l < r) {
m1 = (l + r) / 2;
m2 = m1 + 1;
if ((l - r) % 2 == 0) m1--;
Guess(m1);
t = Guess(m2);
if (t == 0) return m1 + 1;
else if (t == 1) l = m2;
else r = m1;
}
return l;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |