# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
317294 | 2020-10-29T10:46:15 Z | seedkin | Hotter Colder (IOI10_hottercolder) | C | 744 ms | 8188 KB |
#include "grader.h" int HC(int N){ int low = 1; int high = N; int g; int h; while ( high - low > 1 ) { g = Guess(low); h = Guess(high); if(h == 1) { low = (low + high) / 2; } else if (h == -1) { high = (low + high) / 2; } else { return (low + high) / 2; } } g = Guess(low); h = Guess(high); if(h == 1) { return high; } else { return low; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 23 ms | 1280 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 23 ms | 1312 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 23 ms | 1280 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 744 ms | 8188 KB | Output isn't correct - alpha = 0.000000000000 |