{"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":"\u003cp\u003e\u003cspan class\u003d\"tex-font-style-bf\"\u003e这是一个交互式问题。在与测试程序通信时,请记得刷新你的输出。\u003c/span\u003e 你可以在C++中使用 \u003cspan class\u003d\"tex-font-style-tt\"\u003efflush(stdout)\u003c/span\u003e,在Java中使用 \u003cspan class\u003d\"tex-font-style-tt\"\u003esystem.out.flush()\u003c/span\u003e,在Python中使用 \u003cspan class\u003d\"tex-font-style-tt\"\u003estdout.flush()\u003c/span\u003e,或者在Pascal中使用 \u003cspan class\u003d\"tex-font-style-tt\"\u003eflush(output)\u003c/span\u003e 来刷新输出。如果你使用其他编程语言,请查阅其文档。你也可以参考交互式问题指南:\u003ca href\u003d\"https://codeforces.com/blog/entry/45307\"\u003ehttps://codeforces.com/blog/entry/45307\u003c/a\u003e。\u003c/p\u003e\u003cp\u003e评测团队猜测了一个由 $$$a$$$ 个整数组成的数组。有 $$$6$$$ 个特殊数字 — $$$4$$$、$$$8$$$、$$$15$$$、$$$16$$$、$$$23$$$、$$$42$$$ — 每个数字在数组中恰好出现一次(因此,$$$a$$$ 是这些数字的某个排列)。\u003c/p\u003e\u003cp\u003e你不知道它们的顺序,但你可以提出 \u003cspan class\u003d\"tex-font-style-bf\"\u003e最多 $$$4$$$ 次查询\u003c/span\u003e。在每次查询中,你可以选择两个索引 $$$i$$$ 和 $$$j$$$($$$1 \\le i, j \\le 6$$$、$$$i$$$ 和 $$$j$$$ 不一定不同),然后会得到 $$$a_i \\cdot a_j$$$ 的值作为回应。\u003c/p\u003e\u003cp\u003e你能猜出数组 $$$a$$$ 吗?\u003c/p\u003e\u003cp\u003e\u003cspan class\u003d\"tex-font-style-bf\"\u003e数组 $$$a$$$ 在每个测试中事先固定,交互程序不会根据你的查询进行调整\u003c/span\u003e。\u003c/p\u003e"}},{"title":"交互","value":{"format":"HTML","content":"\u003cp\u003e在提交答案之前,你可以提出最多 $$$4$$$ 次查询。要提出一个查询,请以以下格式打印一行:$$$?$$$ $$$i$$$ $$$j$$$,其中 $$$i$$$ 和 $$$j$$$ 应为两个整数,使得 $$$1 \\le i, j \\le 6$$$。 \u003cspan class\u003d\"tex-font-style-it\"\u003e该行应以换行符结尾\u003c/span\u003e。提交查询后,刷新输出并读取查询的答案 — 一个包含一个整数 $$$a_i \\cdot a_j$$$ 的行。如果提交了错误的查询(或者查询次数超过 $$$4$$$ 次),答案将是字符串 \u003cspan class\u003d\"tex-font-style-tt\"\u003e0\u003c/span\u003e。收到这样的答案后,你的程序应立即终止 — 否则你可能会收到“运行时错误”、“超时”或其他判定而不是“答案错误”。\u003c/p\u003e\u003cp\u003e为了给出答案,你的程序应该打印一行 $$$!$$$ $$$a_1$$$ $$$a_2$$$ $$$a_3$$$ $$$a_4$$$ $$$a_5$$$ $$$a_6$$$ \u003cspan class\u003d\"tex-font-style-it\"\u003e并以换行符结束\u003c/span\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\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\u003e16\n64\n345\n672\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e? 1 1\n? 2 2\n? 3 5\n? 4 6\n! 4 8 15 16 23 42\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如果你想对这个问题提交一个黑客,你的测试应该包含恰好六个以空格分隔的整数 $$$a_1$$$、$$$a_2$$$、...、$$$a_6$$$。每个特殊数字应该在测试中恰好出现一次。测试应以换行符结束。\u003c/p\u003e"}}]}