# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
319540 | 2020-11-05T13:36:58 Z | ehdtjskaqhd | Hotter Colder (IOI10_hottercolder) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; int HC(int N) { int i; vector<int> rt(N + 1); for (int i = 1; i <= N; i++) rt[i] = Guess(i); for (int i = 2; i <= N; i++) if (rt[i] == -1) return i - 1; return rt[2] < 0 ? 1 : N; }