# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1046424 | EntityPlantt | Hotter Colder (IOI10_hottercolder) | C++17 | 380 ms | 47888 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;
while (l < r) {
Guess(l);
int ans = Guess(r);
if (!ans) {
// ista dalecina
return l + r >> 1;
}
else if (ans == 1) {
// poblisku e do desno
l = (l + r >> 1) + 1;
}
else {
// poblisku e do levo
r = (l + r >> 1) - 1;
}
}
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... |