Submission #1067275

# Submission time Handle Problem Language Result Execution time Memory
1067275 2024-08-20T13:53:24 Z Ignut The Big Prize (IOI17_prize) C++17
0 / 100
0 ms 344 KB
// Ignut

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

vector<int> ask(int i);

int find_best(int n) {
    int lo = 0, hi = n - 1;
    while (lo < hi) {
        int mid = lo + (hi - lo) / 2;
        vector<int> vec = ask(mid);
        if (vec[0] + vec[1] == 0)
            return mid;
        if (vec[0] < mid)
            hi = mid - 1;
        else
            lo = mid + 1;
    }
    return lo;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB answer is not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB answer is not correct
2 Halted 0 ms 0 KB -