💡 Python 3
최솟값 만들기 [Link]
def solution(A,B):
A.sort(), B.sort(reverse=True)
return sum([a * b for a, b in zip(A, B)])
sort
말고sorted
사용한 코드
def getMinSum(A,B):
return sum(a*b for a, b in zip(sorted(A), sorted(B, reverse = True)))
참 잘했어요 ⭐