# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
365127 | 2021-02-10T23:07:20 Z | MilosMilutinovic | Hotter Colder (IOI10_hottercolder) | C++14 | 0 ms | 0 KB |
#include "grader+ 1.h" #include <bits/stdc++.h> using namespace std; int HC(int n){ int bot = 1, top = n; while (bot <= top) { int mid = bot + top >> 1; int x = Guess(bot), y = Guess(top); if (y == 0) { return mid; } if (y < 0) { top = mid - 1; } else { bot = mid + 1; } } }