Submission #54193961


Source Code Expand

# oj t -c "python3 main.py"
import sys,math
from collections import defaultdict,deque
from itertools import combinations,permutations,accumulate,product
from bisect import bisect,bisect_left,bisect_right
from heapq import heappop,heappush,heapify
#from sortedcontainers import SortedList,SortedSet
def input():return sys.stdin.readline().rstrip()
def ii(): return int(input())
def ms(): return map(int, input().split())
def li(): return list(map(int,input().split()))
inf = pow(10,18)
mod = 998244353
#//////////////////////////////////
N = ii()
Z,W = list(),list()
for _ in range(N):
  x,y = ms()
  Z.append(x+y)
  W.append(x-y)
print(max(max(Z)-min(Z),max(W)-min(W)))

Submission Info

Submission Time
Task E - Dist Max
User YuuuT
Language Python (PyPy 3.10-v7.3.12)
Score 500
Code Size 689 Byte
Status AC
Exec Time 123 ms
Memory 94384 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 2
AC × 18
Set Name Test Cases
Sample sample00, sample01
All handmade02, handmade03, handmade04, handmade05, handmade06, handmade07, handmade08, handmade09, random07, random08, random09, random10, random11, random12, random13, random14, sample00, sample01
Case Name Status Exec Time Memory
handmade02 AC 74 ms 76452 KiB
handmade03 AC 74 ms 76552 KiB
handmade04 AC 74 ms 76404 KiB
handmade05 AC 123 ms 94384 KiB
handmade06 AC 120 ms 93616 KiB
handmade07 AC 120 ms 93744 KiB
handmade08 AC 122 ms 93708 KiB
handmade09 AC 121 ms 93620 KiB
random07 AC 121 ms 93768 KiB
random08 AC 119 ms 93636 KiB
random09 AC 121 ms 93772 KiB
random10 AC 121 ms 93816 KiB
random11 AC 123 ms 93704 KiB
random12 AC 120 ms 93596 KiB
random13 AC 119 ms 93792 KiB
random14 AC 107 ms 90428 KiB
sample00 AC 74 ms 76460 KiB
sample01 AC 73 ms 76416 KiB