Submission #422572

# Submission time Handle Problem Language Result Execution time Memory
422572 2021-06-10T08:45:24 Z pliam Hotter Colder (IOI10_hottercolder) C++14
50 / 100
657 ms 8104 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=(low+hi-1)/2;
        else if(a>0) low=(low+hi+1)/2;
        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 1292 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 1228 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 657 ms 8104 KB Output isn't correct - alpha = 0.000000000000