How I can solve this qustions???
Last night Taliban attacked a police station. Afghan National Police fought them and repelled the attack by killing all of them. However, after the attack, Police forces noticed a strange pattern of tiny holes in the station’s wall. They decide to cover these holes by a kind of bulletproof sheet metal temporarily. These sheets are only in square shape in different sizes, so they should use them to cover near t o each other holes. Therefore, they first disjoint the holes to N parts based on their distance from each other. Then calculate and select appropriate sheet metal to cover each part. Write a program to find the area of the smallest square that will cover
Example: 3
-1 , -1
1 , 1
1 , 2
Output : 6.50
Or
4
5 , 2
5 , -2
-5 , 2
-5 , -2
Output : 98.00
Comments
Post a Comment