CSES - Range Xor Queries

Author: Danh Ta Chi Thanh

Solution

Unofficial Editorial

#include <bits/stdc++.h>
using namespace std;
//constant initialization
const int maxn=2e5+10;
//variables used for the current problem
long long n,q,a[maxn],u,v;

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!