프로그래머스 문제
function solution(A,B){ A.sort((a,b) => a-b); B.sort((a,b) => a-b); return A.reduce((acc, cur, idx) => acc + cur * B[B.length-1-idx], 0); }