알고리즘/프로그래머스
[위클리 챌린지] 8주차
래울
2021. 9. 27. 19:52
https://programmers.co.kr/learn/courses/30/lessons/86491?language=python3
코딩테스트 연습 - 8주차
[[10, 7], [12, 3], [8, 15], [14, 7], [5, 15]] 120 [[14, 4], [19, 6], [6, 16], [18, 7], [7, 11]] 133
programmers.co.kr
프로그래머스 위클리챌린지 8주차 최소직사각형
def solution(sizes):
t1, t2 = [], []
for s in sizes:
if s[0] > s[1]:
t1.append(s[0])
t2.append(s[1])
else:
t2.append(s[0])
t1.append(s[1])
return max(t1)*max(t2)