{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e小A来到大学主修计算机和科学。\u003cbr\u003e\u003cbr\u003e今天他在算法课上学习了位运算,并且得到了一道作业题。\u003cbr\u003e\u003cbr\u003e题目如下:\u003cbr\u003e\u003cbr\u003e给定n个非负整数$a_1,a_2,\\cdots ,a_n$和一些查询。\u003cbr\u003e\u003cbr\u003e一个查询只包含一个正整数p,表示你需要回答除$a_p$之外的所有整数的位运算结果(与、或、异或)。\u003cbr\u003e\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"最多有15个测试用例。\u003cbr\u003e\u003cbr\u003e每个测试用例以一行两个正整数n和p开头,表示正整数的数量和查询的数量。\u003cbr\u003e\u003cbr\u003e$2 \\leq n,q \\leq 10^5$\u003cbr\u003e\u003cbr\u003e然后是一行n个非负整数$a_1,a_2,\\cdots,a_n$,每个i在范围[1, n]内。\u003cbr\u003e\u003cbr\u003e接下来有q个正整数$p_1,p_2,\\cdots,p_q$,每个i在范围[1, q]内,分别在q行中给出。\u003cbr\u003e"}},{"title":"输出","value":{"format":"HTML","content":"对于每个查询p,在一行中输出三个非负整数,表示除$a_p$之外的所有非负整数的位运算结果(与、或、异或)。\u003cbr\u003e"}},{"title":"示例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3 3\r\n1 1 1\r\n1\r\n2\r\n3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1 1 0\r\n1 1 0\r\n1 1 0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}