Question: Make a program to find area of a rectangle that covers M circles. I need to do this using python. Make a program to find
Make a program to find area of a rectangle that covers M circles.

I need to do this using python.
Make a program to find the area of a rectangle that covers M crcles. The rectangle has only vertical and horizontal edges. The rectangle size should be minimized to cover the circles. The crcles can be overlapped. For example, when M = 3, The input and output format is as follows; Input M // number of circles cix cty ctr // origin of 1st circle and its radius c2x c2y c2r // origin of 2nd circle and its radius CMx My Mr // origin of Mth circle and its radius Output O Area of the rectangle po M is number of circles. Following M lines are for circles. Each line has three values for x, y coordinates (e.g. c1x and cty) as circle's center and radius (e.g. c1r). Area in Output is the estimated rectangle area. Example Input: 3 7.8 3.5 0.5 8.7 8.2 1.2 3.6 7.0 0.8 Output: 45.44
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
