# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
231096 | muhammad_hokimiyon | Hotter Colder (IOI10_hottercolder) | C++14 | 783 ms | 136696 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>
#include "grader.h"
using namespace std;
int HC(int nn)
{
int l = 1 , r = nn;
int ls = 0;
while( l < r ){
int m = (l + r) / 2;
int y2 = Guess( m + 1 );
if( y2 == -1 || (y2 == 0 && (l > 1 || r < nn)) ){
r = m;
ls = m + 1;
continue;
}
int y1 = Guess( m );
ls = m;
if( y1 == -1 )l = m + 1;
else r = m;
}
return 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... |