약수

last update: 2021.09.08.WED

1037 약수, Silver 5

Memory 29200KB, Time 72ms


import sys

n = int(input())
divisors = list(map(int, sys.stdin.readline().split()))

minimum = min(divisors)
maximum = max(divisors)
print(minimum*maximum)