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;
}
}
Hmm, cái mô tả này khá chi tiết nhỉ. Với người mới như mình, thấy họ nhấn mạnh sự ‘dễ dùng’ là điểm cộng lớn rồi. Bạn xem thử win99 club slot download xem sao, có vẻ ổn áp cho trải nghiệm ban đầu đó.
[7577]8999 bet লগইন ও অ্যাপ ডাউনলোড | বিকাশ ক্যাসিনো ডিপোজিট,8999 bet লগইন করে অনলাইন স্লট গেম খেলার নিয়ম জানুন। বিকাশ দিয়ে ক্যাসিনো ডিপোজিট করে এখনই আপনার অ্যাকাউন্ট তৈরি করুন এবং খেলা শুরু করুন। visit: 8999 bet
Really impressed with the variety of games here. It feels very intuitive and the loading times are super fast. Glad I found d188com today.
Such a joyful experience overall. The graphics are sharp and the games load instantly. If you are looking for quality entertainment, ph11phjoy is the way to go.
Great vibes and an awesome collection of slots. I spend most of my free time exploring phtaya07 now.
[4244]222bet লগইন এবং অ্যাপ ডাউনলোড – বিকাশ ক্যাসিনো ডিপোজিট,222bet লগইন করুন এবং অনলাইন স্লট গেম নিয়ম জেনে জিতে নিন আকর্ষণীয় পুরস্কার। বিকাশ দিয়ে ক্যাসিনো ডিপোজিট করে আজই গেম খেলা শুরু করুন। visit: 222bet
Love the vibe of this site! It is very intuitive and the bonuses for new players are actually worth it. Keep it up! phjiliday
Really impressed with the game variety here. I had a great run last weekend and the customer support was super helpful. Check out vn78winc3 if you want a reliable spot.
[7941]New888 | Link vào trang chủ và hướng dẫn chơi baccarat,Truy cập new888 để nhận link vào trang chủ chính thức, tải app new888 nhanh chóng và tìm hiểu luật chơi xóc đĩa online chi tiết. Tham gia sảnh game ngay hôm nay. visit: new888
[5923]Snowking Login Oficial | Mejores Slots y Depósitos con Oxxo,Accede a snowking para disfrutar de las mejores slots y ruleta online. Descarga la apk oficial y realiza tus depósitos con Oxxo de forma rápida. ¡Regístrate ahora! visit: snowking