import java.util.Arrays;
class Solution
{
public int solution(int[] A, int[] B)
{
Arrays.sort(A);
Arrays.sort(B);
/// A, B 각각 sort하여 오름차순 정렬
int answer = 0;
int q = B.length–1;
for(int i=0; i<A.length; i++){
answer += A[i]*B[q–];
/// A배열을 작은 수부터 큰 수 순서로
/// B배열을 큰 수부터 작은 수 순서로
/// 곱해서 return 값에 더 함
}
return answer;
}
}
[2312]ff777 Official Login | Best GCash Online Casino in Philippines,ff777 offers a seamless app download for the top online slot games in the Philippines. Enjoy secure GCash transactions and learn how to play baccarat. Join now! visit: ff777
Picking up lottery tickets used to be such a hassle until I discovered this app. The drawing results update instantly and the payout process is lightning fast. I love how easy it is to set up quick picks and track my numbers all in one place. Definitely my new go to for daily draws. Visit the official app 66lotteryapp
I have tried quite a few betting sites over the years but this one really nailed the user experience from day one. Logging in is quick and the mobile version runs perfectly on my phone. Just hit a pretty sweet combo on a classic fruit slot last night and loved how smooth the payout went. If you want a spot that feels trustworthy and actually treats its players well, this is it. x7betlogin
Alright, gave sx777game a run. I had a blast! The gameplay was engaging, and the graphics are decent. Definitely a good way to kill some time. Go give sx777game a shot!
[4832]Spinbara লগইন এবং অ্যাপ ডাউনলোড | বিকাশ ক্যাসিনো গেম,spinbara login করুন এবং অ্যাপ ডাউনলোড করে লাইভ ক্যাসিনো বোনাস অফার উপভোগ করুন। বিকাশ দিয়ে ক্যাসিনো গেম খেলে জিতে নিন দারুণ সব পুরস্কার। visit: spinbara
[3504]1991bet Official Login | বিকাশ পেমেন্ট ও সেরা ক্যাসিনো বোনাস,1991bet অ্যাপ ডাউনলোড করে উপভোগ করুন সেরা স্লট গেম ও আকর্ষণীয় ক্যাসিনো বোনাস। বিকাশ দিয়ে সহজে লেনদেন করে আজই আপনার অ্যাকাউন্ট খুলুন। visit: 1991bet
[7076]Melate Casino: Registro, Bono y App APK para Tragamonedas Online,Únete a Melate Casino y vive la emoción de las mejores tragamonedas online en México. Regístrate hoy, aprovecha nuestro bono de bienvenida y descarga la App APK para jugar desde cualquier lugar. ¡Tu gran premio te espera! visit: melate
[9694]abcvip | Link vào tải app và sảnh quay hũ đổi thưởng,Truy cập abcvip để trải nghiệm game quay hũ đổi thưởng hấp dẫn, tìm hiểu cách chơi baccarat online và nạp tiền casino qua momo nhanh chóng. Tham gia ngay! visit: abcvip