{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cscript type\u003d\u0027text/x-mathjax-config\u0027\u003eMathJax.Hub.Config({tex2jax: { inlineMath: [[\u0027$\u0027,\u0027$\u0027],[\u0027\\[\u0027,\u0027\\]\u0027]] } }); \u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027 src\u003d\u0027https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\u0027\u003e\u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027\u003esetTimeout(function(){MathJax.Hub.Queue([\u0027Typeset\u0027, MathJax.Hub, \u0027description-container\u0027]);}, 2000);\u003c/script\u003e\n\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cp\u003eK的质因子中只包含2 3 5。满足条件的前10个数是:2,3,4,5,6,8,9,10,12,15。\u003c/p\u003e \n \u003cp\u003e所有这样的K组成了一个序列S,现在给出一个数n,求S中 \u0026gt;\u003d 给定数的最小的数。\u003c/p\u003e \n \u003cp\u003e例如:n \u003d 13,S中 \u0026gt;\u003d 13的最小的数是15,所以输出15。\u003c/p\u003e \n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n 第1行:一个数T,表示后面用作输入测试的数的数量。(1 \u0026lt;\u003d T \u0026lt;\u003d 10000) 第2 - T+1行:每行1个数N(1 \u0026lt;\u003d N \u0026lt;\u003d 10^18)\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n 共T行,每行1个数,输出\u0026gt;\u003d n的最小的只包含质因子2 3 5的数。\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e5\n1\n8\n13\n35\n77\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e2\n8\n15\n36\n80\n\u003c/pre\u003e"}}]}