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 "prize.h"
#ifndef EVAL
#include "grader.cpp"
#endif
#include <bits/stdc++.h>
using namespace std;
int find_best(int n)
{
int b = 0, e = n;
while (e - b != 1)
{
auto v = ask((e + b) / 2);
if (v[0])
e = (e + b) / 2;
else
b = (b + e) / 2;
}
return b;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |