#P8404. [CCC 2022 J5] Square Pool
[CCC 2022 J5] Square Pool
Problem Description
Ron wants to build a square swimming pool in his square yard, but there are trees in his yard.
Your task is to determine the side length of the largest square swimming pool he can build.
Input Format
The first line contains an integer , as described in the problem statement.
The second line contains an integer , as described in the problem statement.
The next lines each contain two integers , indicating that there is a tree at .
Output Format
Output one line containing the maximum side length of the swimming pool.
5
1
2 4
3
15
8
4 7
4 1
14 11
10 6
13 4
4 10
10 3
9 14
7
Hint
Explanation for Sample :

Explanation for Sample :

Constraints:
For of the testdata: .
For of the testdata: .
For of the testdata: .
For of the testdata: .
Translated by ChatGPT 5