본문 바로가기
알고리즘/백준

백준-3009번(네 번째 점)-python3

by nyeongha 2023. 11. 26.
x=[]
y=[]
for _ in range(3):
    a,b=map(int,input().split())
    if a not in x:
        x.append(a)
    elif a in x:
        x.remove(a)
    if b not in y:
        y.append(b)
    elif b in y:
        y.remove(b)
print(x[0],y[0])