# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
754523 | ValiAntonie | Hotter Colder (IOI10_hottercolder) | C++14 | 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 "grader.h"
#include<bits/stdc++.h>
using namespace std;
int Guess (int x);
int HC(int N){
int st=1,dr=N;
Guess(st);
int a = Guess(dr);
while(st!=dr){
int mij = (st+ dr) >> 1;
if(a==-1)
dr= mij;
else if(a==1)//close to l
st = mij + 1;
else return mij;
Guess(st);
a = Guess(dr);
}
if(a == 0)
return mij;
else
return st;
}