#P1369. 矩形
矩形
Description
Given points on the plane, find an axis-aligned rectangle whose boundary contains as many points as possible.
Input Format
The first line contains an integer , the number of points in the plane. Each of lines contains two integers, the - and -coordinates of a point.
Output Format
Output a single integer: the maximum number of points that can lie on the boundary of the chosen rectangle.
10
2 3
9 2
7 4
3 4
5 7
1 5
10 4
10 6
11 4
4 6
7
Hint
Constraints and Notes
- For of the data, .
- For of the data, , and each coordinate lies in the range .
Translated by ChatGPT 5
京公网安备 11011102002149号