Problem F
UnDetected
The Department of Defense has been designing autonomous robots that can infiltrate war zones and other hostile places in order to carry out missions. Now they want to test their latest design, the Penetrator1700, and they’ve hired you to help design the test environment.
The test environment is a rectangular field with some sensors placed within the field. Each sensor has a certain radius defining the region within which it can detect a robot. You want to design the field to have as many sensors as possible while still permitting a route across the field that avoids detection.
The field is a region of the coordinate plane defined by
![\includegraphics[width=0.25\textwidth ]{field3}](/problems/undetected/file/statement/en/img-0001.png)
Input
Input begins with a positive integer
Output
Output a single integer (which may be
Sample Input 1 | Sample Output 1 |
---|---|
6 36 228 58 164 224 58 88 170 42 93 105 42 167 85 58 28 44 58 |
2 |
Sample Input 2 | Sample Output 2 |
---|---|
6 36 228 58 28 44 58 164 224 58 88 170 42 93 105 42 167 85 58 |
3 |
Sample Input 3 | Sample Output 3 |
---|---|
6 28 44 58 36 228 58 88 170 42 93 105 42 164 224 58 167 85 58 |
4 |
Sample Input 4 | Sample Output 4 |
---|---|
3 100 150 101 30 30 10 170 30 100 |
0 |