{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"problem-body\"\u003e\n\t\u003cp\u003e\r\n\u003cimg src\u003d\"CDN_BASE_URL/a30a094c618b463ec1f5aab50f254ad4?v\u003d1715888621\"\u003e\r\n\u003c/p\u003e\r\n\u003cp\u003e\r\nMy birthday is coming up and traditionally I\u0027m serving pie. Not just\r\none pie, no, I have a number \u003cem\u003eN\u003c/em\u003e of them, of various tastes and\r\nof various sizes. \u003cem\u003eF\u003c/em\u003e of my friends are coming to my party and\r\neach of them gets a piece of pie. This should be one piece of one pie,\r\nnot several small pieces since that looks messy. This piece can be one\r\nwhole pie though.\r\n\u003c/p\u003e\r\n\u003cp\u003e\r\nMy friends are very annoying and if one of them gets a bigger piece\r\nthan the others, they start complaining. Therefore all of them should\r\nget equally sized (but not necessarily equally shaped) pieces, even if\r\nthis leads to some pie getting spoiled (which is better than spoiling\r\nthe party). Of course, I want a piece of pie for myself too, and that\r\npiece should also be of the same size.\r\n\u003c/p\u003e\r\n\u003cp\u003e\r\nWhat is the largest possible piece size all of us can get? All the\r\npies are cylindrical in shape and they all have the same height 1,\r\nbut the radii of the pies can be different.\r\n\u003c/p\u003e\r\n\u003ch3\u003eInput\u003c/h3\u003e\r\n\u003cp\u003e\r\nOne line with a positive integer: the number of test cases. Then\r\nfor each test case:\r\n\u003c/p\u003e\u003cul\u003e\r\n\u003cli\u003e\r\nOne line with two integers \u003cem\u003eN\u003c/em\u003e and \u003cem\u003eF\u003c/em\u003e with 1 ≤\r\n\u003cem\u003eN, F\u003c/em\u003e ≤ 10000: the number of pies and the number of\r\nfriends.\r\n\r\n\u003c/li\u003e\u003cli\u003e\r\nOne line with \u003cem\u003eN\u003c/em\u003e integers \u003cem\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/em\u003e with 1 ≤\r\n\u003cem\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/em\u003e ≤ 10000: the radii of the pies.\r\n\u003c/li\u003e\u003c/ul\u003e\r\n\u003cp\u003e\u003c/p\u003e\r\n\u003ch3\u003eOutput\u003c/h3\u003e\r\n\u003cp\u003e\r\nFor each test case, output one line with the largest possible volume\r\n\u003cem\u003eV\u003c/em\u003e such that me and my friends can all get a pie piece of size\r\n\u003cem\u003eV\u003c/em\u003e. The answer should be given as a floating point number\r\nwith an absolute error of at most 10\u003csup\u003e-3\u003c/sup\u003e.\r\n\u003c/p\u003e\r\n\u003ch3\u003eExample\u003c/h3\u003e\r\n\r\n\u003cdiv\u003e\u003ctable class\u003d\"vjudge_sample\"\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\n3 3\r\n4 3 3\r\n1 24\r\n5\r\n10 5\r\n1 4 2 3 4 5 6 5 4 2\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e25.1327\r\n3.1416\r\n50.2655\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e\r\n\n\u003c/div\u003e"}}]}