# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
548859 | Trisanu_Das | Hotter Colder (IOI10_hottercolder) | C++17 | 10086 ms | 8096 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 n){
// prev submission had bs wrong. looks like I'm forgetting binary search.
int l = 1, r = n;
while(l < r){
int mid = (l + r) / 2;
Guess(l);
int try_ = Guess(r);
if(try_ == 0) return mid;
else if(try_ == 1) l = mid;
else r = mid;
}
}
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... |