Problem Description

Read array of n integers and q queries (l r). For each query output XOR of a[l..r] (1-based).

Input Format

First line n q. Second line n integers. Next q lines: l r.

Output Format

q lines answers.

Sample Test Case

Input:
5 3 1 2 3 4 5 1 3 2 4 4 5
Output:
0 5 1

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next