# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
548856 | 2022-04-14T15:12:32 Z | Trisanu_Das | Hotter Colder (IOI10_hottercolder) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> #include "grader.h" using namespace std; int HC(int n){ int l = 1, r = n; while(l < r){ int mid = (l + r) / 2; Guess(l); try_ = Guess(r); if(try_ == 0) return mid; else if(try_ == 1) l++; else r--; } }