#P2218. [HAOI2007] 覆盖问题
[HAOI2007] 覆盖问题
Description
Someone planted saplings on a mountain. Winter has come, the temperature dropped sharply, and the saplings are too fragile. The owner wants to cover them with some plastic sheets. After careful consideration, he decides to use square plastic sheets of size to cover the saplings. We set up a 2D Cartesian coordinate system on the mountain; the coordinates of the -th sapling are . The squares of size must be axis-aligned. A point lying on the boundary of a square is also considered covered. Of course, we want the plastic area to be as small as possible; that is, find the minimal .
Input Format
The first line contains an integer .
The next lines each contain two integers , giving the coordinates of the -th tree. It is guaranteed that no two trees share the same coordinates.
Output Format
Output one line: the minimal value of .
4
0 1
0 -1
1 0
-1 0
1
Hint
For of the testdata, .
For of the testdata, .
For of the testdata, .
For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号