题面

Code

#include<bits/stdc++.h>
#define INF 0x7f7f7f7f
#define rgt register
using namespace std;
int n,x,y,Xmax,Xmin=INF,Ymax,Ymin=INF;
inline int read() {
    rgt int s=0,p=1;
    rgt char c=getchar();
    while(!isdigit(c)) {if(c=='-') p=-1;c=getchar();}
    while(isdigit(c)) s=(s<<1)+(s<<3)+c-'0',c=getchar();
    return s*p;
}
int main()
{
    int i;
    n=read();
    for(i=1;i<=n;i++) {
        x=read(),y=read();
        Xmax=max(Xmax,x+y),
        Xmin=min(Xmin,x+y),
        Ymax=max(Ymax,x-y),
        Ymin=min(Ymin,x-y);
    }
    printf("%d",max(Xmax-Xmin,Ymax-Ymin));
    return 0;
}

devil.