{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"A fisherman named Etadokah awoke in a very small island. He could see calm, beautiful and blue sea around the island. The previous night he had encountered a terrible storm and had reached this uninhabited island. Some wrecks of his ship were spread around him. He found a square wood-frame and a long thread among the wrecks. He had to survive in this island until someone came and saved him.\r\u003cbr\u003e\r\u003cbr\u003eIn order to catch fish, he began to make a kind of fishnet by cutting the long thread into short threads and fixing them at pegs on the square wood-frame. He wanted to know the sizes of the meshes of the fishnet to see whether he could catch small fish as well as large ones.\r\u003cbr\u003e\r\u003cbr\u003eThe wood frame is perfectly square with four thin edges on meter long: a bottom edge, a top edge, a left edge, and a right edge. There are n pegs on each edge, and thus there are 4n pegs in total. The positions of pegs are represented by their (x,y)-coordinates. Those of an example case with n\u003d2 are depicted in figures below. The position of the ith peg on the bottom edge is represented by (ai,0). That on the top edge, on the left edge and on the right edge are represented by (bi,1), (0,ci) and (1,di), respectively. The long thread is cut into 2n threads with appropriate lengths. The threads are strained between (ai,0) and (bi,1),and between (0,ci) and (1,di) (i\u003d1,...,n).\r\u003cbr\u003e\r\u003cbr\u003eYou should write a program that reports the size of the largest mesh among the (n+1)2 meshes of the fishnet made by fixing the threads at the pegs. You may assume that the thread he found is long enough to make the fishnet and the wood-frame is thin enough for neglecting its thickness.\r\u003cbr\u003e\u003cimg src\u003d\"CDN_BASE_URL/438441429f8e5f974af4946b347049d8?v\u003d1714554498\"\u003e\r\u003cbr\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The input consists of multiple sub-problems followed by a line containing a zero that indicates the end of input. Each sub-problem is given in the following format.\r\u003cbr\u003en\r\u003cbr\u003ea1 a2 ... an\r\u003cbr\u003eb1 b2 ... bn\r\u003cbr\u003ec1 c2 ... cn\r\u003cbr\u003ed1 d2 ... dn\r\u003cbr\u003eyou may assume 0 \u0026lt; n \u0026lt;\u003d 30, 0 \u0026lt; ai,bi,ci,di \u0026lt; 1"}},{"title":"Output","value":{"format":"HTML","content":"For each sub-problem, the size of the largest mesh should be printed followed by a new line. Each value should be represented by 6 digits after the decimal point, and it may not have an error greater than 0.000001."}},{"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\u003e2\r\n0.2000000 0.6000000\r\n0.3000000 0.8000000\r\n0.1000000 0.5000000\r\n0.5000000 0.6000000\r\n2\r\n0.3333330 0.6666670\r\n0.3333330 0.6666670\r\n0.3333330 0.6666670\r\n0.3333330 0.6666670\r\n4\r\n0.2000000 0.4000000 0.6000000 0.8000000\r\n0.1000000 0.5000000 0.6000000 0.9000000\r\n0.2000000 0.4000000 0.6000000 0.8000000\r\n0.1000000 0.5000000 0.6000000 0.9000000\r\n2\r\n0.5138701 0.9476283\r\n0.1717362 0.1757412\r\n0.3086521 0.7022313\r\n0.2264312 0.5345343\r\n1\r\n0.4000000\r\n0.6000000\r\n0.3000000\r\n0.5000000\r\n0\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0.215657\r\n0.111112\r\n0.078923\r\n0.279223\r\n0.348958\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}