# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
411691 | faresbasbs | Hotter Colder (IOI10_hottercolder) | C++14 | 621 ms | 24400 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 g(int val){
return Guess(val);
}
int HC(int n){
int l = 0 , r = n , last = -1;
while(r-l > 1){
int mid = (l+r+1)/2 , a = g(l+1) , b = g(r);
if(a == b && a == 0){
return mid;
}
if(b == 1){
l = mid;
}else{
r = mid;
}
}
return r;
}
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... |