# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
224446 | 2020-04-17T23:20:07 Z | jhnah917 | Hotter Colder (IOI10_hottercolder) | C++14 | 713 ms | 8196 KB |
#include "grader.h" #include <bits/stdc++.h> using namespace std; int HC(int N){ int l = 1, r = N; while(l < r){ int m = l + r >> 1; int a = Guess(l), b = Guess(r); if(b == 1) l = m + 1; else if(b == -1) r = l + r - 1 >> 1; else return m; } return l; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 25 ms | 1280 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 25 ms | 1280 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 25 ms | 1280 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 713 ms | 8196 KB | Output is partially correct - alpha = 0.068965517241 |