# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
41062 | meylady | Hotter Colder (IOI10_hottercolder) | C++14 | 805 ms | 8196 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 left = 1;
int right = N;
int mid = (left + right) / 2;
while (left < right) {
int query1 = Guess(left);
int query2 = Guess(right);
mid = (left + right) / 2;
if (query2 == 0)return mid;
if (query2 == 1) {//hotter
left = mid+1;
}
else {//colder
right = mid;
}
}
return left;
}
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... |