Company: Goldman Sachs_22july
Difficulty: medium
Drone Surveillance System Problem Description A tech company has implemented a drone surveillance system to enhance airspace safety. Using a 2D GPS coordinate system, they have mapped a triangular no-fly zone that includes their data center. Any unauthorized drone entering this area is considered a potential threat. The system continuously tracks all drones in the vicinity and logs their real-time GPS coordinates. Drones located within the triangular no-fly zone, or precisely on its border are considered to have violated the no-fly zone. Your task is to write a program that takes the three coordinates of the no-fly zone, followed by the coordinates of N drones flying, and prints the area of the no-fly zone and the number of drones violating the no-fly zone. The following formula can be used to calculate the area of a triangle with its coordinates as (X1, Y1), (X2, Y2), (X3, Y3): Area = 0.5 * |X1(Y2 - Y3) + X2(Y3 - Y1) + X3(Y1 - Y2)| Read the input from STDIN and print the output to STD