Submission #544341

# Submission time Handle Problem Language Result Execution time Memory
544341 2022-04-01T18:46:18 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++17
25 / 100
568 ms 8128 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;

int Guess (int x);

int HC(int n){
    int st = 1;
    int dr = n;
    while(st <= dr){
        int mij = (st + dr) / 2;
        Guess(st);
        int x = Guess(dr);
        if(x == 0)
            return mij;
        else if(x == 1)
            st = mij + 1;
        else
            dr = mij;
    }
    return st;
}
# Verdict Execution time Memory Grader output
1 Correct 25 ms 1236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 22 ms 1296 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 22 ms 1236 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 568 ms 8128 KB Output isn't correct - alpha = 0.000000000000