프로래그래스머스 최소 직사각형-python
def solution(sizes):
for i in sizes:
i.sort()
wl=[]
hl=[]
for w,h in sizes:
wl.append(w)
hl.append(h)
mwl=max(wl)
mhl=max(hl)
answer = mwl*mhl
return answer
'알고리즘 > 프로그래머스' 카테고리의 다른 글
프로그래머스-369게임 (0) | 2024.01.01 |
---|---|
프로그래머스-연속된 수의 합 (0) | 2024.01.01 |
프로그래머스-가위바위보-구현 (1) | 2024.01.01 |
프로래그래스머스 모의고사-python (0) | 2023.11.23 |
프로그래머스-네트워크-python (0) | 2023.11.23 |