Online-Judge/Programmers
[Programmers] Python 최소직사각형
nyangzzi
2022. 3. 20. 03:01
반응형
https://programmers.co.kr/learn/courses/30/lessons/86491
코딩테스트 연습 - 최소직사각형
[[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
[전체 코드]
def solution(sizes):
return max(max(size) for size in sizes) * max(min(size) for size in sizes)
반응형