# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
253200 | rama_pang | Rabbit Carrot (LMIO19_triusis) | C++14 | 789 ms | 157048 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |