# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
430055 | moyindavid | The Big Prize (IOI17_prize) | C++17 | 144 ms | 200 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){
for(int y=n/2;y>=0 && y<n;){
vector<int> a = ask(y);
if(a[0]==1){
y/=2;
}
else if(a[1]==1){
y+=y/2;
}
else{
return y;
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |