# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
833768 | caganyanmaz | The Big Prize (IOI17_prize) | C++17 | 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 <bits/stdc++.h>
#include "prize.h"
using namespace std;
//#define DEBUGGING
#ifdef DEBUGGING
#include "../debug.h"
#else
#define debug(x...) void(42)
#endif
int find_best(int n)
{
int l = 0, r = n;
while (r - l > 1)
{
int m = l+r>>1;
vector<int> res = ask(m);
debug(m, res[0], res[1] );
if ((res[0] + res[1] > 1))
return m;
if (res[0] == 1)
r = m;
else
l = m;
}
return l;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |