
ZOJ Problem Set  3460
You control N missile launching towers. Every tower has enough missiles, but for each tower only one missile can be launch at the same time. Before the launching, every missile need T_{1} seconds to leave the tower. Assume that all the missiles have the same speed V, and it would fly along the shortest path to the target. You can just consider the horizontal distance and ignore the height. You can consider the time equal to distance / V (minutes). The missile can immediately destroy the target when it reached. Besides, for the same tower, after launching a missile, it need T_{2} minutes to prepare for the next one. Now, give you the coordinate position of N missile launching towers and M targets, T_{1}, T_{2} and V, you should find the minimum minutes to destroy all the targets. Input
The input will consist of about 10 cases. The first line of each case contains five positive integer numbers N, M, T_{1}, T_{2} and V, decribed as above. The next M lines contains two integer numbers indicating the coordinate of M targets. The continueing N lines contains two integer numbers indicating the coordinate of N towers. OutputFor each case, the output is only one line containing only one real number with six digits precision (after a decimal point) indicating the minimum minutes to destroy all the targets. Sample Input3 3 30 20 1 0 0 0 50 50 0 50 50 0 1000 1000 0 Sample Output91.500000 Author: HE, Ningxu Contest: ZOJ Monthly, January 2011 