[BOJ / Python] 3009 네 번째 점

도니·2023년 4월 11일

BOJ / Python

목록 보기
63/105
post-thumbnail

문제

백준 3009 네 번째 점

코드

#BOJ 3009 네 번째 점

x1, y1 = map(int, input().split())
x2, y2 = map(int, input().split())
x3, y3 = map(int, input().split())

if x1 == x2: x4 = x3
elif x2 == x3: x4 = x1
else: x4 = x2

if y1 == y2: y4 = y3
elif y2 == y3: y4 = y1
else: y4 = y2

print(x4, y4)
profile
Where there's a will, there's a way

0개의 댓글