# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
593434 | serkanrashid | XORanges (eJOI19_xoranges) | C++14 | 138 ms | 11236 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
const int maxn=2*1e5+5;
int n,q;
int a[maxn],chet[4*maxn],nech[4*maxn];
int ql,qr,val;
void make_tree_chet(int v, int l, int r)
{
if(l==r)
{
if(r%2==0) chet[v]=a[r];
return;
}
int mid=(l+r)/2;
make_tree_chet(v*2+0,l,mid+0);
make_tree_chet(v*2+1,mid+1,r);
chet[v]=chet[v*2]^chet[v*2+1];
}
void make_tree_nech(int v, int l, int r)
{
if(l==r)
{
if(r%2==1) nech[v]=a[r];
return;
}
# | 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... |