백준 13228 The REAL Manhattan distance [Python]

지구온난화·2023년 3월 24일
0

백준 브론즈

목록 보기
31/52
t = int(input())
for i in range(t):
    x1, y1, f1, x2, y2, f2 = map(int, input().split())
    x = abs(x1-x2)
    y = abs(y1-y2)
    f = f1+f2
    print(x+y+f)

2023-03-24

0개의 댓글