{"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在著名的测试系统MathForces上,进行了一次共有$$$n$$$个等级单位的抽奖。等级将根据以下算法进行分配:如果有$$$k$$$名参与者参加此活动,则等级将在他们之间均匀分配,并四舍五入为最接近的整数。在抽奖结束时,可能会有未使用的等级,不会分配给任何参与者。\u003c/p\u003e\u003cp\u003e例如,如果$$$n \u003d 5$$$和$$$k \u003d 3$$$,那么每个参与者将获得$$$1$$$个等级单位,同时$$$2$$$个等级单位将保持未使用状态。如果$$$n \u003d 5$$$,且$$$k \u003d 6$$$,则没有参与者将增加他们的等级。\u003c/p\u003e\u003cp\u003eVasya参加了这次等级抽奖,但不知道此活动的参与者总数。因此,他想知道作为抽奖结果可能获得的等级增量的不同值,并请求你的帮助。\u003c/p\u003e\u003cp\u003e例如,如果$$$n\u003d5$$$,那么答案等于序列$$$0, 1, 2, 5$$$。这些序列值中的每一个(仅限它们)都可以作为某个正整数$$$k$$$(其中$$$\\lfloor x \\rfloor$$$是$$$x$$$的向下取整值)的$$$\\lfloor n/k \\rfloor$$$获得: $$$0 \u003d \\lfloor 5/7 \\rfloor$$$,$$$1 \u003d \\lfloor 5/5 \\rfloor$$$,$$$2 \u003d \\lfloor 5/2 \\rfloor$$$,$$$5 \u003d \\lfloor 5/1 \\rfloor$$$。\u003c/p\u003e\u003cp\u003e编写一个程序,对于给定的$$$n$$$,找到所有可能的等级增量序列。\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含整数$$$t$$$($$$1 \\le t \\le 10$$$)— 输入中的测试用例数。然后是$$$t$$$个测试用例。\u003c/p\u003e\u003cp\u003e每行包含一个整数$$$n$$$($$$1 \\le n \\le 10^9$$$)— 正在抽取的等级单位总数。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e输出每个$$$t$$$个测试用例的答案。每个答案应包含两行。\u003c/p\u003e\u003cp\u003e在第一行打印一个整数$$$m$$$— Vasya可以获得的不同等级增量值的数量。\u003c/p\u003e\u003cp\u003e在接下来的一行中,以升序打印$$$m$$$个整数\u003cspan class\u003d\"tex-font-style-bf\"\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\u003e4\n5\n11\n1\n3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e4\n0 1 2 5 \n6\n0 1 2 3 5 11 \n2\n0 1 \n3\n0 1 3 \n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}