# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
41026 | 2018-02-12T06:08:43 Z | esspks21 | Hotter Colder (IOI10_hottercolder) | C++14 | 761 ms | 8288 KB |
#include "grader.h" int HC(int N) { int left = 1; int right = N; while (left <= right) { Guess(left); int temp = Guess(right); if (temp == 0) // same return (left + right) / 2; if (temp == 1) // hotter left = (left + right) / 2 + 1; if (temp == -1) // colder right = (left + right) / 2; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 31 ms | 1272 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 29 ms | 1272 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 30 ms | 1272 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 761 ms | 8288 KB | Output isn't correct - alpha = 0.000000000000 |