{"trustable":false,"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":"MD","content":"**这是一个交互式问题。**\n\n随着 TXT 对位运算的深入学习,TXT 认为自己已经掌握了按位与,按位或,位异或三种位运算操作。\n\n现在某人想到了一个数组 $$$a$$$ $$$(0 \\le a_i \\le n - 1)$$$,希望 TXT 可以猜出来。\n\nTXT 可以查询数组 $$$a$$$ 中任意两个元素的按位与,按位或,位异或结果。\n\n现在你来扮演 TXT 猜出数组吧,注意你只能查询 $$$n+2$$$ 次。"}},{"title":"输入格式","value":{"format":"MD","content":"输入的第一行包含一个整数 $$$n$$$ $$$(4 \\le n \\le 2^{16})$$$ 保证 $$$n$$$ 是 $$$2$$$ 的幂。"}},{"title":"交互格式","value":{"format":"MD","content":"对于每一次查询,你需要先输出查询类型,然后跟两个整数表示数组 $$$a$$$ 中的元素索引。\n\n查询类型包括按位与 (\"AND\") ,按位或 (\"OR\") ,位异或 (\"XOR\") 。\n\n如果存在非法查询,你将得到 \"-1\" 的查询结果。\n\n如果你找到了数组 $$$a$$$ 请用一个 \"!\" 后面跟着 $$$n$$$ 个整数表示数组 $$$a$$$ 。"}},{"title":"样例 #1","value":{"format":"MD","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\u003e4\n\n0\n\n3\n\n1\n\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eAND 3 4\n\nOR 2 4\n\nXOR 1 3\n\n! 3 3 2 0\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}