#Lutece3252. 嘴大疑惑盒
嘴大疑惑盒
Migrated from Lutece 3252 嘴大疑惑盒
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给定序列 , 次询问。每次给定 ,求
表示异或。
Input
第一行,两个整数,分别为 和 。
第二行, 个正整数,描述序列 ,下标从 开始。
接下 行,每行两个数,表示 和 。
Output
共 行,每行一个整数,表示答案。
Samples
5 5
6 1 4 9 11
1 4
2 3
3 4
3 5
2 5
15
5
13
15
15
Constraints
,,
Resources
2024 UESTC ICPC Training for Math