#P3717. [AHOI2017初中组] cover
[AHOI2017初中组] cover
Description
On an grid (indexed from ), there are detectors, each with a detection radius . Among these points, how many points can be detected.
Input Format
The first line contains integers . Each of the next lines contains two integers , representing the coordinates of the -th detector.
Output Format
Output the number of points that can be detected.
5 2 1
3 3
4 2
8
Hint
Constraints: .
Translated by ChatGPT 5
京公网安备 11011102002149号