# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
722362 | tvladm2009 | Hotter Colder (IOI10_hottercolder) | C++17 | 0 ms | 0 KiB |
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>
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;
}