728x90
반응형

x1,y1 = map(int,input().split())
x2,y2 = map(int,input().split())
x3,y3 = map(int,input().split())
tempx = 0
tempy = 0
if x1==x2:
tempx = x3
elif x1==x3:
tempx = x2
elif x2==x3:
tempx = x1
if y1==y2:
tempy = y3
elif y1==y3:
tempy = y2
elif y2==y3:
tempy = y1
print(tempx, tempy)
반응형
'코딩 > 백준' 카테고리의 다른 글
파이썬:백준 문제 풀이 10886번, 0 = not cute / 1 = cute (0) | 2024.08.20 |
---|---|
C# <11382번:꼬마 정민> 백준문제 풀이 (0) | 2024.08.20 |
C# <10171번: 고양이> 백준 문제 풀이 (1) | 2024.08.18 |
C# <10172번:개>백준문제풀이 (0) | 2024.08.16 |
C# <14681번:사분면 고르기> 백준문제풀이 (0) | 2024.08.14 |