# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1252232 | PlayVoltz | The Big Prize (IOI17_prize) | C++20 | 23 ms | 408 KiB |
#include "prize.h"
#include <bits/stdc++.h>
using namespace std;
int find_best(int n){
int low=-1, high=n;
while (low+1<high){
int mid=(low+high)/2;
vector<int> res=ask(mid);
if (!(res[0]+res[1]))return mid;
if (res[0])high=mid;
else low=mid;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |