#P1648. 看守
看守
Description
Given points in a -dimensional space, find the maximum Manhattan distance between any two points.
For two -dimensional points and , their Manhattan distance is defined as .
Input Format
The first line contains two integers and .
The next lines each contain integers describing the coordinates of a point.
Output Format
Output the maximum Manhattan distance.
4 2
2 1
1 4
4 5
5 3
6
Hint
Constraints
- For of the testdata, it is guaranteed that .
- For of the testdata, it is guaranteed that , , and each coordinate satisfies .
Translated by ChatGPT 5
京公网安备 11011102002149号