# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1082501 | aaaaaarroz | Hotter Colder (IOI10_hottercolder) | C++17 | 10067 ms | 8020 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;
int pivot=1;
while(l<r){
Guess(pivot);
int res=Guess((l+r)/2);
if(res==0){
return (l+r)/2;
}
else if(res==-1){
r=((l+r)/2);
r--;
}
else if(res==1){
l=((l+r)/2);
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... |