# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
282055 | Pichon5 | The Big Prize (IOI17_prize) | C++17 | 50 ms | 384 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 a=0,b=n-1;
while(a<=b){
int mid=(a+b)/2;
vector<int>v=ask(mid);
if(v[0]==0 && v[1]==0){
return mid;
}
if(v[0]==1){
b=mid-1;
}else{
a=mid+1;
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |