# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1175293 | vahagng | Hotter Colder (IOI10_hottercolder) | C++20 | 393 ms | 8224 KiB |
#include "grader.h"
int HC(int N){
int l = 1, r = N;
int cnt = 0;
while(l < r){
Guess(l);
int res = Guess(r);
int m = (l + r)/2;
if(res == 0){
return m;
}
if(res == -1){
r = m - 1 + ((r + l)%2);
}
if(res == 1){
l = m + 1;
}
}
return l;
}
# | 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... |