#P1728. Cover Points
Cover Points
题目描述
There are n points on the plane, (x1,y1),(x2,y2),…,(xn,yn).
You need to place an isosceles triangle with two sides on the coordinate axis to cover all points (a point is covered if it lies inside the triangle or on the side of the triangle). Calculate the minimum length of the shorter side of the triangle.
输入格式
First line contains one integer n (1≤n≤1e5).
Each of the next n lines contains two integers xi and yi (1≤xi,yi≤1e8).
输出格式
Print the minimum length of the shorter side of the triangle. It can be proved that it's always an integer.
样例
3
1 1
1 2
2 1
3
4
1 1
1 2
2 1
2 2
4
提示
by 19陈夏源