# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
56118 | 2018-07-10T04:45:13 Z | leejseo | Hotter Colder (IOI10_hottercolder) | C++ | 902 ms | 49840 KB |
#include "grader.h" int HC(int N){ int lo = 1, hi = N; while (lo < hi){ if (hi == lo + 1){ Guess(lo); if (Guess(hi) == 1) return hi; return lo; } int mid = (lo + hi) >> 1; int left = Guess(lo); int middle = Guess(mid); int right = Guess(hi); if (middle == -1){ hi = mid; continue; } if (middle == 0){ return (lo+mid) >> 1; } //middle == 1 if (right == 1){ lo = mid; continue; } if (right == 0){ return (lo+hi)>>1; } if (right == -1){ lo = 1 + ((lo + mid) >> 1); hi = ((hi + mid) >> 1); continue; } } return lo; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 38 ms | 6648 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 43 ms | 6648 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 42 ms | 6648 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 902 ms | 49840 KB | Output isn't correct - alpha = 0.000000000000 |