# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
226769 | 2020-04-25T09:52:31 Z | jiahng | Hotter Colder (IOI10_hottercolder) | C++14 | 0 ms | 0 KB |
//#include "grader.h" #include <bits/stdc++.h> typedef long long ll; int HC(int N){ ll l = 1, r = N; if (N == 2){ Guess(1); if (Guess(2) == -1) return 1; else return 2; } while (l < r){ int mid = (l+r)/2; Guess(mid); //std::cout<<l<<' '<<r<<'\n'; int res = Guess(mid+1); if (res == -1) r = mid; else l = mid+1; } return l; }