# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
491677 | dxz05 | Hotter Colder (IOI10_hottercolder) | C++14 | 534 ms | 8240 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"
#include <bits/stdc++.h>
using namespace std;
int HC(int n){
if (n == 1) return 1;
int g = Guess(1);
int ans = 1;
int l = 2, r = n;
while (l <= r){
int m = (l + r) >> 1;
g = Guess(m - 1);
g = Guess(m);
if (g == 1){
ans = m;
l = m + 1;
} else r = m - 1;
}
return l - 1;
}
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... |