# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
201743 | 2020-02-11T22:24:16 Z | Leonardo_Paes | Hotter Colder (IOI10_hottercolder) | C++17 | 650 ms | 140340 KB |
#include "grader.h" int HC(int n){ int ini = 1, fim = n , meio, ans = -1; while(ini<=fim){ meio = (ini + fim) >> 1; if(ini == fim){ ans = meio; break; } Guess(ini); int a = Guess(fim); if(a == 0) return meio; else if(a == 1){ ini = meio + 1; } else{ fim = meio - 1 + (fim - ini)&1; } } return ans; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 40 ms | 17528 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 41 ms | 17528 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 41 ms | 17528 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 650 ms | 140340 KB | Output isn't correct - alpha = 0.000000000000 |