# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1272930 | hgmhc | The Big Prize (IOI17_prize) | C++20 | 1 ms | 400 KiB |
#include "prize.h"
int find_best(int n) {
int a=0, b=n-1, m;
while(a<=b) {
m=(a+b)>>1;
if(ask(m)[0]) b=m-1;
else if(ask(m)[1]) a=m+1;
else return m;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |