#P5975. [CEOI 2009] photo
[CEOI 2009] photo
Description
There are several points on the plane. Now you need to cover all points using the minimum number of rectangles whose base lies on the axis and whose area is less than or equal to . These rectangles may overlap. The vertices of the rectangles do not have to be lattice points.
Input Format
The first line contains two integers .
The next lines contain the coordinates of the points.
Output Format
Output the minimum number of rectangles.
6 4
2 1
4 1
5 1
5 4
7 1
6 4
3
Hint
For of the testdata, , . The coordinate range is within .
Sample Explanation:

Translated by ChatGPT 5
京公网安备 11011102002149号