{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eThis is an era of team success, but also an era of heroes. Throughout the ages, there have been numerous examples of using the few to defeat the many. There are $V$ (Numbers $1$ to $V$) fire-fighting points in ACM city. These fire-fighting points have $E$ roads to communicate with each other. Among them, there is a fire-fighting hero in the $S$ fire-fighting point, and the fire-fighting team is distributed in K fire-fighting points. If a fire-fighting point needs to be put out, the fire-fighting hero or the fire-fighting team must arrive as soon as possible, that is, to choose the shortest route to arrive.\u003c/p\u003e\n\u003cp\u003eToday, our fire-fighting heroes want to challenge the fire-fighting team. The challenge is to: The maximum value of the shortest path for a fire-fighting hero to go to others fire-fighting points is compared with the maximum value of the shortest path for a fire-fighting team to go to others fire-fighting points from any point in their fire-fighting points. Because firefighting heroes are different and run faster, the maximum value of the shortest path they get should be discounted first, that is, multiplied by a coefficient of $\\frac{1}{C}$, and then compared. The smaller one wins. Who is the real firefighter in this situation?\u003c/p\u003e\n\u003cp\u003eWho is the real firefighter in this situation?\u003c/p\u003e\n\u003ch3\u003eInput\u003c/h3\u003e\n\u003cp\u003eThe first line contains a positive integer $T (1\\le T \\le 10)$, which indicates that there are $T$ cases of test data.\u003c/p\u003e\n\u003cp\u003eThe format of each case of test data is as follows:\u003c/p\u003e\n\u003cul\u003e\n \u003cli\u003eLine $1$ contains five positive integers $V (1 \\le V \\le 1000)$, $E (V-1 \\le E \\le \\frac{V*V}{2})$, $S (1 \\le S \\le V)$, $K (1\\le K \\le V)$ and $C (1\\le C\\le 10)$, the meanings are shown above.\u003c/li\u003e\n \u003cli\u003eLine $2$ contains $K$ positive integers, which in turn denotes the location number of the fire-fighting point where the fire-fighting team is located.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eIn the next $E$ line, three positive integers $i, j (1 \\le i, j \\le V)$ and $L (1 \\le L \\le 10000)$ per line. Represents a path, $i, j$ as the endpoint (fire-fighting point), $L$ as the length of the path.\u003c/p\u003e\n\u003ch3\u003eOutput\u003c/h3\u003e\n\u003cp\u003eEach case of test data outputs one line, which is a integer. That is, the maximum value of the shortest path of the winner (If the fire hero wins, the maximum value before the discount should be output). A draw is also a victory for fire-fighting hero.\u003c/p\u003e"}},{"title":"Sample 1","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\n4 7 3 2 2\n1 4\n1 2 7\n1 3 2\n1 4 6 \n2 1 1\n2 4 1\n3 2 1\n3 4 3\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003cbr /\u003e"}}]}