Author: | A. Klenin | Time limit: | 2 sec | |
Input file: | input.txt | Memory limit: | 64 Mb | |
Output file: | output.txt |
The Nearsea region has a large forest, where many relict trees grow. The local government decided to create a reservation park with the area between 0 and S square meters. The park must have a shape of rectangle with the sides parallel to coordinate axises.
Environment activists surveyed the forest and found out that it contained N relict trees located at coordinates (xi, yi), measured in meters.
Find such park location and size that the number of relict trees inside of it or on its boundary is maximum possible.
1 ≤ N ≤ 500, − 104 ≤ xi, yi ≤ 104, 1 ≤ S ≤ 109
No. | Input file (input.txt ) |
Output file (output.txt ) |
---|---|---|
1 |
|
|
2 |
|
|