Submission #491675

# Submission time Handle Problem Language Result Execution time Memory
491675 2021-12-03T18:55:15 Z dxz05 Hotter Colder (IOI10_hottercolder) C++14
0 / 100
566 ms 24416 KB
#include "grader.h"
#include <bits/stdc++.h>

using namespace std;

int HC(int n){
    int g = Guess(1);
    g = Guess(2);

    if (g == -1) return 1;

    int l = 2, r = n;
    while (l <= r){
        int m = (l + r) >> 1;
        g = Guess(m - 1);
        g = Guess(m);

        if (g == 1){
            l = m + 1;
        } else r = m - 1;
    }

    return l - 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 20 ms 1228 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 22 ms 1228 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 1228 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 566 ms 24416 KB Output isn't correct - alpha = 0.000000000000