내 풀이
def solution(sizes):
answer = 0
w_max, h_max = 0, 0
for w, h in sizes:
if h > w:
h, w = w, h
if w_max < w:
w_max = w
if h_max < h:
h_max = h
return w_max * h_max
내 풀이
def solution(sizes):
answer = 0
w_max, h_max = 0, 0
for w, h in sizes:
if h > w:
h, w = w, h
if w_max < w:
w_max = w
if h_max < h:
h_max = h
return w_max * h_max