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"
#include <bits/stdc++.h>
using namespace std;
int HC(int n){
int g = Guess(1);
g = Guess(2);
if (g == -1) return 1;
int l = 2, r = n;
while (l <= r){
int m = (l + r) >> 1;
g = Guess(m - 1);
g = Guess(m);
if (g == 1){
l = m + 1;
} else r = m - 1;
}
return l - 1;
}
# | 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... |