luogu#P2074. 危险区域
危险区域
Background
A terrorist organization has planted a time bomb in a city, with great destructive power. The chief of police wants to know, in the worst case, how many blocks will be threatened.
Problem Description
In a city there are blocks, each described by coordinates, as shown below:
It is known that a terrorist organization has planted a time bomb in one of the blocks, with power , meaning all blocks whose straight-line (Euclidean) distance to that block is less than or equal to will be threatened. There are possible bomb locations. The chief wants to know, in the worst case, how many blocks will be threatened.
Input Format
The first line contains four positive integers .
The next lines each contain two positive integers , describing each possible block where the bomb may be placed.
Output Format
Output a single positive integer: the number of blocks that will be threatened in the worst case.
4 5 3 2
1 2
3 4
4 5
11
Hint
Constraints
For of the testdata, .
For of the testdata, , , .
For of the testdata, , , .
Translated by ChatGPT 5