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;
}
}
Alright, Gem88bet is calling my name. I love their interface, smooth as silk. Highly recommended. Give them a shot! Check it out: gem88bet
Scratch cards are such a fun, quick thrill! It’s interesting how platforms like jilimacao login use data to enhance the gaming experience – makes you wonder about the odds, right? A bit of strategy never hurts! 😉
Interesting read! Thinking about variance & expected value, a smooth registration process-like the one at 8jl casino app download apk-is key for player experience. Accessibility matters a lot in gaming!
Hey, saw some folks talking about “khuyến mãi winbet” at WinBet. Are those bonuses for real? If so, sign me up! Seriously gotta check out those deals. Find them here: khuyến mãi winbet
Wowphapp, huh? Is this a new platform for games? Never heard about that but now I am interested, I’ll check it out for sure! Jump here and discover: wowphapp.
Heard you’re after pkwin! Dive in and let’s see if lady luck is on your side: pkwin
Used agg777login to get into my account the other day, quick and easy. It is safe to use. For a quick log in try agg777login
Just exploring ph828ph. Feels like a place I can chill. Maybe I’ll give it a go. Check it out and see what you think with ph828ph
Yo, jl888login is alright! Easy to use and gets you straight into the action. Give jl888login a shot, eh?
Been lurking around coin 777 lately. Seems legit and has a good selection of games. Good place to gamble. See whats up with coin 777