{"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亮皇是科普路星区泰伦帝国的一名光荣的指挥官。他乘坐Hyperion号,带领了他的游骑兵拯救了星灵,异虫和人类。然而现在虚空中埃萌还在蠢蠢欲动,亮皇必须要去打败这邪恶的Xel\u0027Naga。亮皇的Hyperion号可以进行星际折跃,每次折跃有一个折跃距离x,在普通空间时,折跃花费$$$f(x) \u003d x$$$,但是在埃萌的虚空里面,折跃花费为 $$$f(x) \u003d x*ln(x+1)$$$ 。因为亮皇的游骑兵们已经在Hyperion号和埃萌的连线上驻扎,提供补给,亮皇可以选择折跃到这些补给点上,其他地方太过危险不可以折跃。亮皇很聪明,稍稍一想就知道怎么折跃了花费最少,但是你作为他的副官,也必须要有这样的智慧。\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e第一行一个数$$$n$$$表明补给站的数目,$$$0\\le n \\le 100000$$$。\u003c/p\u003e\u003cp\u003e第二行n个整数表示n个补给站和Hyperion号的距离 $$$a_i$$$,$$$0\\le a_i \\le 100000000$$$。\u003c/p\u003e\u003cp\u003e第三行一个整数表示埃萌距离Hyperion的距离 $$$x$$$ ,$$$1\\le x \\le 100000000$$$。\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e输出一个数表示最小花费。如果你的答案是$$$a$$$,正确答案是$$$b$$$,当且仅当$$$min(|a-b|,\\frac{|a-b|}{|b|})\u0026lt;10^{-6}$$$的时候你的答案会被视为正确。\u003c/p\u003e"}},{"title":"Examples","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\u003e10\n1 2 3 4 5 6 7 8 9 10\n20\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e30.9104245\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}