# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
754495 | 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 HC(int n){
int st = 1;
int dr = n;
while(st <= dr){
int mij = (st + dr) / 2;
if(x == 0)
return mij;
else if(x == 1){
st = mij + 1;
Guess(st);
int x = Guess(dr);
}
else if(x == -1){
dr = mij;
Guess(st);
int x = Guess(dr);
}
}
return st;
}