import Foundation
func solution(_ sizes:[[Int]]) -> Int {
let sort_sizes = sizes.map{$0.sorted()}
return sort_sizes.map{$0[0]}.max()! * sort_sizes.map{$0[1]}.max()!
}
'프로그래머스 > Lv.1' 카테고리의 다른 글
[Swift] 콜라츠 추측 (0) | 2023.02.16 |
---|---|
[Swift] 콜라 문제 (0) | 2023.02.16 |
[Swift] 최대공약수와 최소공배수 (0) | 2023.02.16 |
[Swift] 체육복 (0) | 2023.02.16 |
[Swift] 직사각형 별찍기 (0) | 2023.02.16 |