# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
221423 | t12345 | Hotter Colder (IOI10_hottercolder) | C++14 | 770 ms | 24592 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 lt=1, rt=N, md, x;
while(lt < rt) {
x = Guess(lt);
x = Guess(rt);
md = lt+rt >> 1;
if(x==0) return md;
else if(x==1) lt = md+1;
else rt = lt+rt-1 >> 1;
}
return lt;
}
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... |