Question: ECOO ' 1 8 R 1 P 2 - Rue's Rings A local street planning consulting company, Rue's Rings, is looking to help the city
ECOO R P Rue's Rings
A local street planning consulting company, Rue's Rings, is looking to help the city prepare for converting a lot of their
mediumtraffic onelane intersections into roundabouts.
After generating a plan, the city wants to run a simulation to see where the possible bottlenecks of traffic could be The
simulation runs by finding the roundabouts along a route and then figuring out which roundabout is the smallest in
diameter. The smallest diameter roundabout would be the best possible location for congestion and creating a
bottleneck of traffic which would make the traffic patterns even worse than they are now.
There are roundaboutfilled routes from the starting point to the endpoint. Your task as the city simulation specialist,
is to analyze the different routes that are available to find out which route or routes could generate the most issues.
Input Specification
The standard input will contain datasets. Each dataset begins with an integer the number of
routes. The next lines each contain a series of integers describing a route.
The first integer of each route description is the ID for the route. The second integer is the number of
roundabouts along the route. integers follow which describe the diameter of each roundabout
along the route.
Output Specification
For each dataset, output the minimum roundabout diameter along a route followed by a braceenclosed, sorted list of
route IDs for the routes that could cause issues.
Sample Input Two Datasets Shown
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
