링크: 프로그래머스 - 연습문제 > 최솟값 만들기
def solution(A,B): A.sort() B.sort(reverse=True) answer = 0 for a, b in list(zip(A, B)): answer += a * b return answer