반응형

Prob


Approach

기본 문법


Code

if __name__ == "__main__" :
    a, b = map(int, input().split())
    c, d = map(int, input().split())
    e, f = map(int, input().split())
    
    if a == c:
        x = e
    elif a == e:
        x = c
    else:
        x = a

    if b == d:
        y = f
    elif b == f:
        y = d
    else:
        y = b

    print("%d %d"%(x, y))

 

출처

https://www.acmicpc.net/problem/3009

반응형
블로그 이미지

Refrin

일상생활 끄적 IT 프로젝트 끄적