# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
779328 | vjudge1 | XORanges (eJOI19_xoranges) | C++17 | 317 ms | 8124 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define int long long
int n, q, opt, x, y, tree[2][200005], a[200005];
// tree[0 / 1] 表示 l 为[偶 / 奇]数时的树状数组
inline int lowbit(int x)
{
return x & (-x);
}
inline void add(int x, int y, int f)
{
while(x <= n) tree[f][x] ^= y, x += lowbit(x);
}
inline void build()
{
for(int i = 1; i <= n; i++)
{
cin >> a[i];
add(i, a[i], i % 2);
}
}
inline int query(int x, int f)
{
int sum = 0;
while(x) sum ^= tree[f][x], x -= lowbit(x);
# | 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... |