# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1082725 | Bors | Hotter Colder (IOI10_hottercolder) | C++17 | 577 ms | 157008 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 l=1, r=n;
int last=n/2;
while(l<r){
int ac=(l+r)/2;
Guess(ac);
int k=Guess((ac+r)/2);
if(k==0){
return ((ac)+(ac+r))/2;
}
if(k==1){
l=ac+1;
}
if(k==-1){
r=ac;
}
}
return l;
}
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... |