Submission #422567

# Submission time Handle Problem Language Result Execution time Memory
422567 2021-06-10T08:42:07 Z pliam Hotter Colder (IOI10_hottercolder) C++14
50 / 100
695 ms 24368 KB
//#include "hottercolder.h"
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;

int HC(int N){
    int low=1,hi=N;
    while(low<hi){
        int mid=(low+hi)/2;
        Guess(low);
        int a=Guess(hi);
        if(a<0) hi=mid;
        else if(a>0) low=mid+1;
        else return mid;
    }
    return low;
}
# Verdict Execution time Memory Grader output
1 Correct 24 ms 1228 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 1300 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 27 ms 1300 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 695 ms 24368 KB Output isn't correct - alpha = 0.000000000000