# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
927255 | vjudge1 | Hotter Colder (IOI10_hottercolder) | C++11 | 333 ms | 140664 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 <bits/stdc++.h>
using namespace std;
int Guess(int);
int HC(int n) {
int l = 1, r = n, resL, resR;
resL = Guess(l);
while(true) {
resR = Guess(r);
if(resR == 1) l++;
else if(resR == -1) r--;
else {
return (r + l) / 2;
}
}
}
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... |