Problem C
Surveillance Squared
Many cities are setting up surveillance networks to combat
crime. Each network contains many cameras, which are located at
various places and which point in various directions. Each
camera has a viewing angle of
![\includegraphics[width=0.3\textwidth ]{surveillance}](/problems/surveillancesquared/file/statement/en/img-0001.png)
Input
Input contains up to
Output
For each surveillance network, for each camera, output how
many other cameras it can see, in the order the cameras are
listed in the input. Assume that each camera can see infinitely
far, and that there is nothing blocking the view of any camera.
If a camera is just on the edge of the field of view of another
camera (i.e.
Sample Input 1 | Sample Output 1 |
---|---|
3 2 3 -4 2 -4 -1 2 3 -4 5 2 0 5 -11 2 -5 -4 -19 -9 -7 -18 -19 24 19 7 -13 20 -12 20 15 -9 21 24 |
1 2 1 1 0 0 1 0 |