{"trustable":true,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\n\u003cp\u003e\u003cspan class\u003d\"tex-font-style-it\"\u003e为了庆祝Twice的五周年,Tzuyu和Sana决定玩一个游戏。\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003eTzuyu给了Sana两个整数$$$a$$$和$$$b$$$,还有一个非常重要的任务。\u003c/p\u003e\n\u003cp\u003e为了完成任务,Sana必须输出对于任意给定的$$$x$$$,($$$a \\oplus x$$$) + ($$$b \\oplus x$$$)的最小可能值,其中$$$\\oplus$$$表示\u003ca href\u003d\"https://en.wikipedia.org/wiki/Bitwise_operation#XOR\"\u003e异或操作\u003c/a\u003e。\u003c/p\u003e\n"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e每个测试包含多个测试用例。第一行包含测试用例的数量$$$t$$$($$$1 \\le t \\le 10^{4}$$$)。接下来是每个测试用例的描述。\u003c/p\u003e\n\u003cp\u003e每个测试用例的唯一一行包含两个整数$$$a$$$和$$$b$$$($$$1 \\le a, b \\le 10^{9}$$$)。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,输出给定表达式的最小可能值。\u003c/p\u003e"}},{"title":"示例 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003e输入\u003c/th\u003e\n \u003cth\u003e输出\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e6\n6 12\n4 9\n59 832\n28 14\n4925 2912\n1 1\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e10\n13\n891\n18\n6237\n0\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"注意","value":{"format":"HTML","content":"\u003cp\u003e对于第一个测试用例,Sana可以选择$$$x\u003d4$$$,这样值就是($$$6 \\oplus 4$$$) + ($$$12 \\oplus 4$$$) \u003d $$$2 + 8$$$ \u003d $$$10$$$。可以证明这是最小可能值。\u003c/p\u003e"}}]}