100 atcoder#ABC178E. [ABC178E] Dist Max
[ABC178E] Dist Max
Score : points
Problem Statement
There are points on the 2D plane, -th of which is located on . There can be multiple points that share the same coordinate. What is the maximum possible Manhattan distance between two distinct points?
Here, the Manhattan distance between two points and is defined by .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
3
1 1
2 4
3 2
4
The Manhattan distance between the first point and the second point is , which is maximum possible.
2
1 1
1 1
0