# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
99229 | figter001 | 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;
typedef long double ld;
typedef unsigned long long ull;
int HC(int N){
if(N == 1)return 1;
int lo = 1,hi = N,md;
while(lo <= hi){
md = (lo + hi)/2;
Guess(lo);
int res = Guess(hi);
if(res == 0)return md;
if(res == 1)
lo = md+1;
else
hi = md;
}
return lo;
}