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 <bits/stdc++.h>
#include "grader.h"
using namespace std;
typedef long long ll;
int HC(int n) {
int low = 1, high = n;
while (low < high) {
int mid = (low + high) / 2;
Guess(low);
int verdict = Guess(high);
if (verdict == 0) {
return mid;
} else if (verdict == 1) {
low = mid + 1;
} else {
high = mid;
}
}
return low;
}
# | 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... |