# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
426785 | MOUF_MAHMALAT | The Big Prize (IOI17_prize) | C++14 | 108 ms | 320 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 "prize.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
ll b[5009],l,r,m;
vector<ll>v;
int find_best(int n)
{
l=0,r=n-1;
while(l<=r)
{
m=(l+r)/2;
v=ask(m);
if(v[0]+v[1]==0)
return m;
if(v[0])
r=m-1;
else
l=m+1;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |