# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
41331 | ljk0411jg | Hotter Colder (IOI10_hottercolder) | C++14 | 761 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 "grader.h"
int HC(int N) {
int l, r, ret1, ret2, mid, result = 1;
r = N;
l = 1;
while (l <= r)
{
if (l== r)
{
result = l;
break;
}
ret1 = Guess(r);
ret2 = Guess(l);
mid = (l + r) / 2;
if (ret2 == 0)
{
result = mid;
break;
}
else if (ret2 == 1)
{
r = mid;
}
else
{
l = mid + 1;
}
}
return result;
}
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... |