# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
253200 | rama_pang | Rabbit Carrot (LMIO19_triusis) | C++14 | 789 ms | 157048 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;
using lint = long long;
struct Node {
int val = 1e9;
int lazy = 0;
int lc = 0;
int rc = 0;
Node() {}
Node(int val) : val(val) {}
} d[int(1e7)];
int NewNode() {
static int ptd = 2;
return ptd++;
}
void Apply(int &n, int x) {
if (n == 0) n = NewNode();
d[n].val += x;
d[n].lazy += x;
}
void Push(int &n, int &lc, int &rc) {
if (d[n].lazy > 0) {
Apply(lc, d[n].lazy);
Apply(rc, d[n].lazy);
d[n].lazy = 0;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |