| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 797245 | firewater | The Big Prize (IOI17_prize) | C++14 | 1 ms | 296 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 <vector>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#define ll long long
using namespace std;
int l,r;
vector<int>s;
int find_best(int n) {
	l=0;r=n-1;
	while(l<r){
		int mid=l+r+1>>1;
		s=ask(mid);
		if(s[0])r=mid-1;
		else l=mid;
	}
	return l;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
