{"trustable":true,"prependHtml":"\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 async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e幸运比赛的参与者心中选择一个不超过100的非负整数。选择完数字后,让$K$成为所有数字的平均值,$M$成为$K\\times \\frac{2}{3}$的结果。然后幸运儿就是那个选择的数字不超过$M$的人中的最大者。如果有多个这样的人,那么幸运儿将被随机选择。\u003cbr\u003e\u003cbr\u003e如果你有机会知道有多少人参加比赛以及他们选择的数字,假设你也参加比赛,计算出最有可能获胜的最大数字。\u003cbr\u003e\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"有几个测试用例,第一行包含测试用例的数量$T(T\\leq10)$。\u003cbr\u003e\u003cbr\u003e每个测试用例以一个整数$N(1\u0026lt;N\\leq100)$开头,表示参与者的数量。接下来一行包含$N-1$个数字,表示其他参与者选择的数字。\u003cbr\u003e\u003cbr\u003e"}},{"title":"输出","value":{"format":"HTML","content":"对于每个测试用例,输出一个整数,表示你选择的数字和获胜的概率(保留小数点后两位),用空格分隔。\u003cbr\u003e\u003cbr\u003e"}},{"title":"样例","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\u003e3\r\n4\r\n1 2 3\r\n4\r\n1 1 2\r\n4\r\n20 30 40\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1 0.50\r\n0 1.00\r\n18 1.00\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}