L1 : 최소직사각형 Python

jhyunn·2023년 1월 19일
0

Programmers

목록 보기
35/69

L1 : 최소직사각형 Python

https://school.programmers.co.kr/learn/courses/30/lessons/86491

def solution(sizes):
    return max([max(s) for s in sizes]) * max([min(s) for s in sizes])

각 명함의 가장 작은 길이들 중 최댓값,
각 명함의 가장 긴 길이들 중 최댓값
이들의 곱이 정답이다.

profile
https://github.com/Sungjeonghyun

0개의 댓글