{"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在一个高度发达的外星社会中,生存空间是几乎无限维的空间。\u003cbr\u003e在这个星球的历史上,有一个古老的难题。\u003cbr\u003e你有一个长度为x单位的线段,代表一个维度。这个线段可以被分割成许多小线段:$a_1, a_2$,… (x\u003d $a_1+a_2$+…) 分配到不同的维度。然后,多维空间就建立起来了。现在对这个空间有两个要求:\u003cbr\u003e1.两个不同的小线段不能相等( $a_i≠a_j$ 当 i≠j)。\u003cbr\u003e2.使得这个多维空间的大小 s 尽可能大 (s\u003d $a_1*a_2$*...).注意可以保留一个维度。也就是说,ai 的数量只能是一个。\u003cbr\u003e现在你能解决这个问题并找到空间的最大大小吗?(由于最终的数字太大,你的答案将对 10^9+7 取模)\u003cbr\u003e\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"第一行是一个整数 T,表示测试用例的数量。\u003cbr\u003e接下来有 T 行。每行包含一个整数 x。\u003cbr\u003e1≤T≤10^6, 1≤x≤10^9"}},{"title":"输出","value":{"format":"HTML","content":"最大的 s 模 10^9+7 的结果。注意我们希望在取模 10^9+7 之前得到最大的乘积。"}},{"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\u003e1\r\n4\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e4\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}