# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71250 | chhun | Hotter Colder (IOI10_hottercolder) | C++14 | 773 ms | 8184 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 <stdio.h>
#include "grader.h"
int g1;
int g2;
int HC_(int l, int r) {
if (r <= l)
return l;
g1 = Guess(l);
g2 = Guess(r);
if (g2 == 0)
return (l + r) / 2;
else if (g2 == 1) {
return HC_((r + l) / 2 + 1, r);
}
else if (g2 == -1) {
return HC_(l, (l + r-1) / 2);
}
}
int HC(int N) {
return HC_(1, N);
}
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... |