728x90
반응형

이게 왜 9점?

 

 

def solution(dots):
    answer = 0
    
    xCo = []
    yCo = []
    
    for i in range(4):
        xCo.append(dots[i][0])
        yCo.append(dots[i][1])
    xCo.sort()
    yCo.sort()
    
    answer = (xCo[2]-xCo[1]) * (yCo[2]-yCo[1])
    
    return answer
728x90
반응형

+ Recent posts