Submission #512637

# Submission time Handle Problem Language Result Execution time Memory
512637 2022-01-16T14:59:17 Z alextodoran Hotter Colder (IOI10_hottercolder) C++17
0 / 100
574 ms 31488 KB
/**
 ____ ____ ____ ____ ____
||a |||t |||o |||d |||o ||
||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|

**/

#include <bits/stdc++.h>

#include "grader.h"

using namespace std;

typedef long long ll;

int Guess (int x);

int HC (int N) {
    int l = 1, r = N;
    while (l < r) {
        int mid = (l + r) / 2;
        Guess(l);
        int g = Guess(r);
        if (g == -1) {
            r = mid - 1;
        } else if (g == +1) {
            l = mid + 1;
        } else {
            return mid;
        }
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 4036 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 4060 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 4020 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 574 ms 31488 KB Output isn't correct - alpha = 0.000000000000