# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1046426 | 2024-08-06T14:23:43 Z | EntityPlantt | Hotter Colder (IOI10_hottercolder) | C++17 | 341 ms | 8208 KB |
#include "grader.h" int HC(int n) { int l = 1, r = n; while (l < r) { Guess(l); int ans = Guess(r); if (!ans) { // ista dalecina return l + r >> 1; } else if (ans == 1) { // poblisku e do desno l = (l + r >> 1) + 1; } else { // poblisku e do levo r = (l + r >> 1); } } return l; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 2908 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 2908 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 14 ms | 2908 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 341 ms | 8208 KB | Output isn't correct - alpha = 0.000000000000 |
2 | Halted | 0 ms | 0 KB | - |