# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
357777 | idk321 | Hotter Colder (IOI10_hottercolder) | C++11 | 636 ms | 8228 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){
int a = 1;
int b = n;
while (b - 1 > a)
{
int mid = (a + b) / 2;
Guess(mid);
int q = Guess(mid + 1);
if (q == 1)
{
a = mid;
} else
{
b = mid;
}
}
int q1 = Guess(a);
int q2 = Guess(b);
if (q2 == 1) return b;
return a;
}
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... |