Submission #227768

# Submission time Handle Problem Language Result Execution time Memory
227768 2020-04-28T17:06:34 Z muhammad_hokimiyon Hotter Colder (IOI10_hottercolder) C++14
25 / 100
756 ms 8184 KB
#include<bits/stdc++.h>
#include "grader.h"

using namespace std;

int HC(int nn)
{
    int l = 1 , r = nn;
    while( l < r ){
        int m = (l + r) / 2;
        int y2 = Guess( m );
        int y1 = Guess( m + 1 );
        if( y1 == 1 )l = m + 1;
        else if( y2 == 1 )r = m;
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Correct 29 ms 1280 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 1280 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 32 ms 1280 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 756 ms 8184 KB Output isn't correct - alpha = 0.000000000000