{"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\u003ePizzaForces 是彼特亚最喜欢的比萨店。PizzaForces 制作并出售三种尺寸的比萨:小比萨由 $$$6$$$ 片组成,中等比萨由 $$$8$$$ 片组成,大比萨由 $$$10$$$ 片组成。它们的烘烤时间分别为 $$$15$$$、$$$20$$$ 和 $$$25$$$ 分钟。\u003c/p\u003e\u003cp\u003e彼特亚今天过生日,有 $$$n$$$ 位朋友会来,所以他决定从他最喜欢的比萨店订购。彼特亚希望订购足够多的比萨,以便每位朋友至少能得到一片比萨。订单的烹饪时间是订单中所有比萨的总烘烤时间。\u003c/p\u003e\u003cp\u003e你的任务是确定制作至少包含 $$$n$$$ 片比萨所需的最短时间。例如:\u003c/p\u003e\u003cul\u003e \u003cli\u003e 如果有 $$$12$$$ 位朋友来彼特亚的生日,他必须订购至少包含 $$$12$$$ 片比萨的比萨。他可以订购两份小比萨,总共 $$$12$$$ 片,烘烤时间为 $$$30$$$ 分钟; \u003c/li\u003e\u003cli\u003e 如果有 $$$15$$$ 位朋友来彼特亚的生日,他必须订购至少包含 $$$15$$$ 片比萨的比萨。他可以订购一份小比萨和一份大比萨,总共 $$$16$$$ 片,烘烤时间为 $$$40$$$ 分钟; \u003c/li\u003e\u003cli\u003e 如果有 $$$300$$$ 位朋友来彼特亚的生日,他必须订购至少包含 $$$300$$$ 片比萨的比萨。他可以订购 $$$15$$$ 份小比萨,$$$10$$$ 份中等比萨和 $$$13$$$ 份大比萨,总共 $$$15 \\cdot 6 + 10 \\cdot 8 + 13 \\cdot 10 \u003d 300$$$ 片,烘烤时间为 $$$15 \\cdot 15 + 10 \\cdot 20 + 13 \\cdot 25 \u003d 750$$$ 分钟; \u003c/li\u003e\u003cli\u003e 如果只有一位朋友来彼特亚的生日,他可以订购一份小比萨,烘烤时间为 $$$15$$$ 分钟。 \u003c/li\u003e\u003c/ul\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数 $$$t$$$ ($$$1 \\le t \\le 10^4$$$)\u0026nbsp;— 测试用例的数量。\u003c/p\u003e\u003cp\u003e每个测试用例包括一行,其中包含一个整数 $$$n$$$ ($$$1 \\le n \\le 10^{16}$$$)\u0026nbsp;— 彼特亚的朋友数量。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,输出一个整数\u0026nbsp;— 制作至少包含 $$$n$$$ 片比萨的比萨所需的最短时间。\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\u003e6\n12\n15\n300\n1\n9999999999999999\n3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e30\n40\n750\n15\n25000000000000000\n15\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}