{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\r\n \u003cdiv\u003e\r\n You have just moved from a quiet Waterloo neighbourhood to a big, noisy\ncity. Instead of getting to ride your bike to school every day, you now\nget to walk and take the subway. Because you don\u0027t want to be late for\nclass, you want to know how long it will take you to get to school.\n\u003cp\u003e\n\tYou walk at a speed of 10 km/h. The subway travels at 40 km/h. Assume\nthat you are lucky, and whenever you arrive at a subway\nstation, a train is there that you can board immediately.\nYou may get on and off the subway any number of times, and you may switch \nbetween different subway lines if you wish. All subway lines go in \nboth directions.\n\u003c/p\u003e \u003c/div\u003e\r\n "}},{"title":"Input","value":{"format":"HTML","content":"\r\n \u003cdiv\u003e\r\n Input consists of the x,y coordinates of your home and your school, followed by specifications of several subway lines. Each subway line consists of the non-negative integer x,y coordinates of each stop on the line, in order. You may assume the subway runs in a straight line between adjacent stops, and the coordinates represent an integral number of metres. Each line has at least two stops. The end of each subway line is followed by the dummy coordinate pair -1,-1. In total there are at most 200 subway stops in the city. \u003c/div\u003e\r\n "}},{"title":"Output","value":{"format":"HTML","content":"\r\n \u003cdiv\u003e\r\n Output is the number of minutes it will take you to get to school, rounded to the nearest minute, taking the fastest route. \u003c/div\u003e\r\n "}},{"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\r\n \u003cpre\u003e0 0 10000 1000\n0 200 5000 200 7000 200 -1 -1 \n2000 600 5000 600 10000 600 -1 -1\n\u003c/pre\u003e\r\n \u003c/td\u003e\n \u003ctd\u003e\r\n \u003cpre\u003e21\n\u003c/pre\u003e\r\n \u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"HTML","content":"\r\n \u003cpre\u003e无\u003c/pre\u003e\r\n "}}]}