Submission #754481

# Submission time Handle Problem Language Result Execution time Memory
754481 2023-06-07T21:25:05 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++17
0 / 100
621 ms 208672 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;


int HC(int n){
    int st = 1;
    int dr = n;
    Guess(1);
    int x = Guess(n);
    while(st <= dr){
        int mij = (st + dr) / 2;
        if(x == 0)
            return mij;
        else if(x == 1){
            st = mij + 1;
            x = Guess(st);
        }
        else{
            dr = mij - 1;
            Guess(dr);
        }
    }
    return st;
}
# Verdict Execution time Memory Grader output
1 Incorrect 60 ms 26056 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 48 ms 26048 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 41 ms 26008 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 621 ms 208672 KB Output isn't correct - alpha = 0.000000000000