{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\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","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\u003e5\n1\n8\n13\n35\n77\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\n8\n15\n36\n80\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}