Question: ( answer in java ) government in a foreign country is looking into the possibility of establishing a subway system in its capital. Because of
answer in java government in a foreign country is looking into the possibility of establishing a subway system in its capital. Because of practical reasons, they would like each subway line to start at the central station and then go in a straight line in some angle as far as necessary. You have been hired to investigate whether such an approach is feasible. Given the coordinates of important places in the city as well as the maximum distance these places can be from a subway station possibly the central station, which is already built your job is to calculate the minimum number of subway lines needed. You may assume that any number of subway stations can be built along a subway line.
Input
The first line in the input file contains an integer the number of data sets to follow. Each set starts with two integers, and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
