본문 바로가기

코딩/백준

파이썬: 백준 문제풀이 3009번,네 번째 점

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)
 

 

반응형