# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
26716 | baactree | Hotter Colder (IOI10_hottercolder) | C++14 | 926 ms | 53460 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"
int HC(int N){
int le,ri;
le=1;
ri=N;
while(true){
int a=(le*2+ri)/3;
int b=(le+ri*2)/3;
int g=Guess(a);
int p=Guess(b);
if(p==0){
return (a+b)/2;
}
else if(p>0){
le=(a+b)/2+1;
}
else{
if((a+b)%2==0)
ri=(a+b)/2-1;
else
ri=(a+b)/2;
}
if(le==ri)
return le;
}
return 0;
}
Compilation message (stderr)
# | 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... |