using System;
public class Solution {
public int solution(int[] numbers) {
Array.Sort(numbers);
Array.Reverse(numbers);
int answer = numbers[0] * numbers[1];
return answer;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] 숨어있는 숫자의 덧셈(1) (0) | 2023.08.02 |
---|---|
[프로그래머스 C#] 모음 제거 (0) | 2023.08.02 |
[프로그래머스 C#] 배열 두 배 만들기 (0) | 2023.08.01 |
[프로그래머스 C#] 옷가게 할인 받기 (0) | 2023.07.27 |
[프로그래머스 C#] 배열 자르기 (0) | 2023.07.27 |