Buggy python submission (verdict: Runtime Error):
import numpy as np
N = int(input())

x = np.empty(N, dtype=np.longlong)
y = np.empty(N, dtype=np.longlong)

for i in range(N):
    x[i], y[i] = (int(t) for t in input().split())

ind = np.argsort(x)
X = x[ind]
Y = y[ind]

# max_dist = [0]
# for i in range(1, N):
#     max_dist.append(np.max(-X[:i] - Y[:i]) + X[i] + Y[i])
#     max_dist.append(np.max(-X[:i] + Y[:i]) + X[i] - Y[i])

# print(max(max_dist))


dist = np.abs(x.reshape([-1, 1]) - x.reshape([1, -1])) + np.abs(y.reshape([-1, 1]) - y.reshape([1, -1]))

print(dist.max())


Fixed submission:
import numpy as np
N = int(input())

x = []
y = []
xy1 = []
xy2 = []

for i in range(N):
    a, b = (int(t) for t in input().split())
    x.append(a)
    y.append(b)
    xy1.append(a + b)
    xy2.append(a - b)

max1 = max(xy1) - min(xy1)
max2 = max(xy2) - min(xy2)
print(max((max1, max2)))

Buggy python submission (verdict: Runtime Error):
import numpy as np
N = int(input())

x = np.empty(N, dtype=np.longlong)
y = np.empty(N, dtype=np.longlong)

for i in range(N):
    x[i], y[i] = (int(t) for t in input().split())

ind = np.argsort(x)
X = x[ind]
Y = y[ind]

# max_dist = [0]
# for i in range(1, N):
#     max_dist.append(np.max(-X[:i] - Y[:i]) + X[i] + Y[i])
#     max_dist.append(np.max(-X[:i] + Y[:i]) + X[i] - Y[i])

# print(max(max_dist))


dist = np.abs(x.reshape([-1, 1]) - x.reshape([1, -2])) + np.abs(y.reshape([-1, 1]) - y.reshape([1, -2]))

print(dist.max())

Fixed submission:
import numpy as np
N = int(input())

x = []
y = []
xy1 = []
xy2 = []

for i in range(N):
    a, b = (int(t) for t in input().split())
    x.append(a)
    y.append(b)
    xy1.append(a + b)
    xy2.append(a - b)

max1 = max(xy1) - min(xy1)
max2 = max(xy2) - min(xy2)
print(max((max1, max2)))

Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
N = int(input())

x = np.empty(N, dtype=np.longlong)
y = np.empty(N, dtype=np.longlong)

for i in range(N):
    x[i], y[i] = (int(t) for t in input().split())

ind = np.argsort(x)
X = x[ind]
Y = y[ind]

max_dist = [0]
for i in range(1, N):
    max_dist.append(np.max(-X[:i] - Y[:i]) + X[i] + Y[i])
    max_dist.append(np.max(-X[:i] + Y[:i]) + X[i] - Y[i])

print(max(max_dist))

Fixed submission:
import numpy as np
N = int(input())

x = []
y = []
xy1 = []
xy2 = []

for i in range(N):
    a, b = (int(t) for t in input().split())
    x.append(a)
    y.append(b)
    xy1.append(a + b)
    xy2.append(a - b)

max1 = max(xy1) - min(xy1)
max2 = max(xy2) - min(xy2)
print(max((max1, max2)))

Buggy python submission (verdict: Runtime Error):
import numpy as np
N = int(input())

x = np.empty(N, dtype=np.longlong)
y = np.empty(N, dtype=np.longlong)


for i in range(N):
    x[i], y[i] = (int(t) for t in input().split())

    
dist = np.abs(x.reshape([-1, 1]) - x.reshape([1, -1])) + np.abs(y.reshape([-1, 1]) - y.reshape([1, -1]))

print(dist.max())

Fixed submission:
import numpy as np
N = int(input())

x = []
y = []
xy1 = []
xy2 = []

for i in range(N):
    a, b = (int(t) for t in input().split())
    x.append(a)
    y.append(b)
    xy1.append(a + b)
    xy2.append(a - b)

max1 = max(xy1) - min(xy1)
max2 = max(xy2) - min(xy2)
print(max((max1, max2)))