Submission #319555

# Submission time Handle Problem Language Result Execution time Memory
319555 2020-11-05T13:53:44 Z ehdtjskaqhd Hotter Colder (IOI10_hottercolder) C++17
50 / 100
693 ms 24592 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
int HC(int N)
{
    int l = 1, r = N;
    while (l < r)
    {
        int mid = (l + r) / 2;
        Guess(l);
        int res = Guess(r);
        if (!res) return mid;
        else if (~res) l = mid + 1;
        else r = mid;
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Correct 23 ms 1260 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 1260 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 1260 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 693 ms 24592 KB Output isn't correct - alpha = 0.000000000000