Submission #231097

# Submission time Handle Problem Language Result Execution time Memory
231097 2020-05-12T16:59:38 Z muhammad_hokimiyon Hotter Colder (IOI10_hottercolder) C++14
0 / 100
770 ms 134392 KB
#include<bits/stdc++.h>
#include "grader.h"

using namespace std;

int HC(int nn)
{
    int l = 1 , r = nn;
    int ls = 0;
    while( l < r ){
        int m = (l + r) / 2;
        int y2 = Guess( m + 1 );
        if( y2 == -1 || (y2 == 0 && ls != m + 1 && (l > 1 || r < nn)) ){
            r = m;
            ls = m + 1;
            continue;
        }
        int y1 = Guess( m );
        ls = m;
        if( y1 == -1 )l = m + 1;
        else r = m;
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 12280 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 42 ms 12280 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 42 ms 12356 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 770 ms 134392 KB Output isn't correct - alpha = 0.000000000000