Submission #754484

# Submission time Handle Problem Language Result Execution time Memory
754484 2023-06-07T21:33:29 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++17
0 / 100
617 ms 139636 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 > 0){
            st = mij + 1;
            Guess(st);
            x = Guess(n);
        }
        else{
            dr = mij;
            Guess(1);
            x = Guess(dr);
        }
    }
    return st;
}
# Verdict Execution time Memory Grader output
1 Incorrect 35 ms 16716 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 37 ms 16668 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 16688 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 617 ms 139636 KB Output isn't correct - alpha = 0.000000000000