# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
254107 | test2 | Monkey and Apple-trees (IZhO12_apple) | C++14 | 57 ms | 3088 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>
using namespace std;
const int N = (1 << 30);
int t, a, b, c;
int tree[2000006];
int nodes;
int le[2000006], ri[2000006];
int left(int x)
{
if (!le[x])
{
return le[x] = ++nodes;
}
return le[x];
}
int right(int x)
{
if (!ri[x])
{
return ri[x] = ++nodes;
}
return ri[x];
}
void update(int node, int L, int R, int l, int r)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |