Submission #357762

# Submission time Handle Problem Language Result Execution time Memory
357762 2021-01-24T16:01:18 Z idk321 Hotter Colder (IOI10_hottercolder) C++11
0 / 100
1309 ms 262144 KB
#include "grader.h"

int HC(int n){

    int a = 0;
    int b = n;
    while (b > a)
    {
        int mid = (a + b) / 2;
        Guess(mid);
        int q = Guess(mid);
        if (q == 1)
        {
            a = mid + 1;
        } else
        {
            b = mid;
        }
    }

    return a;
}
# Verdict Execution time Memory Grader output
1 Incorrect 107 ms 51052 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 108 ms 51180 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 106 ms 51052 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 1309 ms 262144 KB Output isn't correct - alpha = 0.000000000000