# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
232355 | 2020-05-16T19:59:19 Z | crossing0ver | Hotter Colder (IOI10_hottercolder) | C++17 | 818 ms | 72160 KB |
#include<bits/stdc++.h> #include "grader.h" using namespace std; int HC(int N){ if (N == 1) return 1; int m = N/2; Guess(N); int ask,last = N; int l = 1, r = N; int x = m; ask = Guess(x); while (l != r) { if (ask == 0) { return (last + x)/2; } if (ask == 1) { if (last < x) l = (last + x + 1)/2; else r = (x + last -1)/2; } else { if (last < x) r = (last + x - 1)/2; else l = (last + x + 1)/2; } if (l == r) return l; last = x; x = (l + r)/2; ask = Guess(x); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 37 ms | 8960 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 38 ms | 9088 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 36 ms | 9080 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 818 ms | 72160 KB | Output isn't correct - alpha = 0.000000000000 |