https://www.acmicpc.net/problem/1037
n = int(input()) arr = list(map(int, input().split())) arr.sort() print(arr[0] * arr[-1])
약수들이 주어지니까 정렬후 맨 앞에 값과 끝에 값을 곱하였다.
정렬하지않고 max,min을 각각 구해서 곱해도 될것같다