| ps | |
|---|---|
| 링크 | acmicpc.net/… |
| 출처 | BOJ |
| 문제 번호 | 1037 |
| 문제명 | 약수 |
| 레벨 | 실버 5 |
| 분류 |
기초 |
| 시간복잡도 | O(n) |
| 인풋사이즈 | n<=50 |
| 사용한 언어 | Python |
| 제출기록 | 29200KB / 72ms |
| 최고기록 | 52ms |
| 해결날짜 | 2021/08/30 |
"""Solution code for "BOJ 1037. 약수".
- Problem link: https://www.acmicpc.net/problem/1037
- Solution link: http://www.teferi.net/ps/problems/boj/1037
"""
def main():
count = int(input()) # pylint: disable=unused-variable
divisors = [int(x) for x in input().split()]
print(max(divisors) * min(divisors))
if __name__ == '__main__':
main()