# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
252310 | 2020-07-25T08:45:58 Z | SamAnd | Hotter Colder (IOI10_hottercolder) | C++17 | 0 ms | 0 KB |
#include "grader.h" #include "hottercolder.h" int n; int HC(int N) { n = N; int l = 1, r = n; while (l <= r) { int m = (l + r) / 2; Guess(l); int u = Guess(r); if (u == 0) { return m; } if (u == 1) l = m + 1; else r = m - 1; } }