[Programmers] 최소직사각형
Python
def solution(sizes):
answer = 0
min_size, max_size = [], []
for size in sizes:
min_size.append(min(size[0], size[1]))
max_size.append(max(size[0], size[1]))
return max(min_size) * max(max_size)
댓글남기기