# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
137036 | 2019-07-27T01:37:17 Z | WongHokFong_cpp | Hotter Colder (IOI10_hottercolder) | C++14 | 0 ms | 0 KB |
#include "hottercolder.h" #include <iostream> #include <cstdio> using namespace std; int HC(int N) { Guess(1); for (int i=2;i<=N;i++) { int gu=Guess(i) if (gu==-1) return 1; if (gu==0) return i-1; } return N; }