# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
317294 | seedkin | Hotter Colder (IOI10_hottercolder) | C11 | 744 ms | 8188 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 low = 1;
int high = N;
int g;
int h;
while ( high - low > 1 ) {
g = Guess(low);
h = Guess(high);
if(h == 1) {
low = (low + high) / 2;
} else if (h == -1) {
high = (low + high) / 2;
} else {
return (low + high) / 2;
}
}
g = Guess(low);
h = Guess(high);
if(h == 1) {
return high;
} else {
return low;
}
}
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... |