# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
838105 | Johann | The Big Prize (IOI17_prize) | C++14 | 49 ms | 11376 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 "bits/stdc++.h"
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
typedef vector<pii> vpii;
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
vvi Qu;
vi query(int i)
{
if (Qu[i][0] == -1)
Qu[i] = ask(i);
return Qu[i];
}
set<int> sums;
int reference;
vi interesting;
int cnt;
int r;
void resolve(int l)
{
if (r - l == 0)
return;
vi tmp = query(l);
if (tmp[0] + tmp[1] != reference)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |