Company: TCS codevita
Difficulty: medium
PlaceFinder The Place Finder is a special tool made for finding locations in areas without internet. To know where you are, you need a group of these devices because they work together. These devices can easily talk to each other. Each device can find where other devices are and how far they are. This information is shared among devices, creating a network. This network helps with communication and figuring out where devices are in relation to each other. In a real time scenario, each device is able to communicate with each other, but it is not able to find the direction and distances of all devices due to natural obstacles. However for few devices it may be possible to know their direction and distances. The calculations required to find distance between devices can be understood from the Examples section. Constraints 1 ≤ N ≤ 16 Angle is measured in degree Distance is in meters Input First line consists of an integer 'N' denoting total number of place finder devices Second line consis