# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
433728 | Valaki2 | XORanges (eJOI19_xoranges) | C++14 | 141 ms | 10164 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int n, q;
vector<int> numbers;
vector<int> segtree_even;
vector<int> segtree_odd;
int even_size;
int odd_size;
void update_odd(int v, int vl, int vr, int pos, int val) {
if(vl == vr) {
segtree_odd[v] = val;
return;
}
int mid = (vl + vr) / 2;
if(pos <= mid) {
update_odd(2 * v, vl, mid, pos, val);
} else {
update_odd(2 * v + 1, mid + 1, vr, pos, val);
}
segtree_odd[v] = (segtree_odd[2 * v] ^ segtree_odd[2 * v + 1]);
}
void update_even(int v, int vl, int vr, int pos, int val) {
if(vl == vr) {
segtree_even[v] = val;
# | 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... |