{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cimg src\u003d\"CDN_BASE_URL/89440c776e737dfbd97010da5758f259?v\u003d1714301213\" border\u003d\"0\" alt\u003d\"Problem illustration\" align\u003d\"RIGHT\" class\u003d\"problem_raimage\"\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eEgor was in a hurry to get to the university on time. He was near the \r\nuniversity already and it only remained to cross a road. Egor came up to \r\nthe curb, looked to the left, and saw \u003ci\u003en\u003c/i\u003e approaching cars. Then he looked \r\nto the right and saw \u003ci\u003em\u003c/i\u003e cars. “I should leap right now, but my life is \r\nmore important for me than the lectures,” he thought. \u003c/div\u003e\u003c/div\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eYekaterinburg has right-hand traffic. The speed of all cars is 20\u0026nbsp;km/h. \r\nEgor\u0027s speed is 5\u0026nbsp;km/h. The width of the road is 4\u0026nbsp;meters (two lanes \r\n2\u0026nbsp;meters wide each). Each car is 2\u0026nbsp;meters wide and 5\u0026nbsp;meters long. Egor can \r\nstart crossing the road only at the point he has approached it. He should \r\ncross the road orthogonally, without changing his speed or stopping. \u003c/div\u003e\u003c/div\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eFind the minimum time after which Egor can start crossing the road. It is \r\nguaranteed that Egor will be able to cross the road before any new cars \r\nappear. \u003c/div\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eIn the first line you are given the number \u003ci\u003en\u003c/i\u003e of the cars approaching \r\nfrom the left (1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 300). In the \r\nsecond line you are given integers \u003ci\u003ed\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e, \u003ci\u003ed\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e, …, \u003ci\u003ed\u003c/i\u003e\u003csub\u003e\u003ci\u003en\u003c/i\u003e\u003c/sub\u003e, which are \r\nthe distances to these cars in meters (1 ≤ \u003ci\u003ed\u003c/i\u003e\u003csub\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e ≤ 10\u0026nbsp;000; \u003ci\u003ed\u003c/i\u003e\u003csub\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e − \r\n\u003ci\u003ed\u003c/i\u003e\u003csub\u003e\u003ci\u003ei\u003c/i\u003e−1\u003c/sub\u003e ≥ 5). \r\nIn the third line you are given the number \u003ci\u003em\u003c/i\u003e of the cars approaching \r\nfrom the right (1 ≤ \u003ci\u003em\u003c/i\u003e ≤ 300). The fourth line contains distances to \r\nthese cars in the same format as the distances to the cars from the left.\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eOutput the minimum time in seconds after which Egor can start crossing the \r\nroad. The answer must be accurate to at least six fractional digits. \u003c/div\u003e\u003c/div\u003e"}},{"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\u003e1\r\n1\r\n1\r\n100\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1.080000\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}