{"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\"\u003eLittle A has come to college and majored in Computer and Science.\u003cbr\u003e\u003cbr\u003eToday he has learned bit-operations in Algorithm Lessons, and he got a problem as homework.\u003cbr\u003e\u003cbr\u003eHere is the problem:\u003cbr\u003e\u003cbr\u003eYou are giving n non-negative integers $a_1,a_2,\\cdots ,a_n$, and some queries.\u003cbr\u003e\u003cbr\u003eA query only contains a positive integer p, which means you \u003cbr\u003eare asked to answer the result of bit-operations (and, or, xor) of all the integers except $a_p$.\u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"There are no more than 15 test cases. \u003cbr\u003e\u003cbr\u003eEach test case begins with two positive integers n and p\u003cbr\u003ein a line, indicate the number of positive integers and the number of queries.\u003cbr\u003e\u003cbr\u003e$2 \\leq n,q \\leq 10^5$\u003cbr\u003e\u003cbr\u003eThen n non-negative integers $a_1,a_2,\\cdots,a_n$ follows in a line, $0 \\leq a_i \\leq 10^9$ for each i in range[1,n].\u003cbr\u003e\u003cbr\u003eAfter that there are q positive integers $p_1,p_2,\\cdots,p_q$in q lines, $1 \\leq p_i \\leq n$ for each i in range[1,q]."}},{"title":"Output","value":{"format":"HTML","content":"For each query p, output three non-negative integers indicates the result of bit-operations(and, or, xor) of all non-negative integers except $a_p$ in a line.\u003cbr\u003e"}},{"title":"Sample","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\n"}}]}