# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
983528 | Nomio | XORanges (eJOI19_xoranges) | C++17 | 116 ms | 11624 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define meta int tm = tl + (tr - tl) / 2, x = (i << 1) + 1, y = x + 1
using namespace std;
int st1[800001] {}, st2[800001] {};
void update1(int i, int tl, int tr, int l, int v) {
if(tl == tr) {
st1[i] = v;
return;
}
meta;
if(l <= tm) {
update1(x, tl, tm, l, v);
} else {
update1(y, tm + 1, tr, l, v);
}
st1[i] = (st1[x] ^ st1[y]);
}
void update2(int i, int tl, int tr, int l, int v) {
if(tl == tr) {
st2[i] = v;
return;
}
meta;
if(l <= tm) {
update2(x, tl, tm, l, v);
} else {
update2(y, tm + 1, tr, l, v);
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |