| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1366048 | mariza | The Big Prize (IOI17_prize) | C++20 | 0 ms | 412 KiB |
#include "prize.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define MID ((l+r)/2)
int find_best(int n){
ll l=0, r=n-1;
while(l<=r){
vector<int> ans=ask(MID);
if(ans[0]==1) r=MID-1;
else if(ans[1]==1) l=MID+1;
else return MID;
}
}
Compilation message (stderr)
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
