# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
357777 | 2021-01-24T16:42:43 Z | idk321 | Hotter Colder (IOI10_hottercolder) | C++11 | 636 ms | 8228 KB |
#include "grader.h" #include <bits/stdc++.h> using namespace std; int HC(int n){ int a = 1; int b = n; while (b - 1 > a) { int mid = (a + b) / 2; Guess(mid); int q = Guess(mid + 1); if (q == 1) { a = mid; } else { b = mid; } } int q1 = Guess(a); int q2 = Guess(b); if (q2 == 1) return b; return a; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 23 ms | 1260 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 23 ms | 1260 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 23 ms | 1260 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 636 ms | 8228 KB | Output isn't correct - alpha = 0.000000000000 |