# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
105783 | RezwanArefin01 | The Big Prize (IOI17_prize) | C++17 | 3 ms | 512 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "prize.h"
using namespace std;
int find_best(int n) {
int lo = 0, hi = n - 1;
while(lo <= hi) {
int mid = lo + hi >> 1;
vector<int> a = ask(mid);
if(a[0] + a[1] == 0) return mid;
if(a[0]) hi = mid - 1;
else lo = mid + 1;
}
return -1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |