반응형
1037번: 약수
첫째 줄에 N의 진짜 약수의 개수가 주어진다. 이 개수는 50보다 작거나 같은 자연수이다. 둘째 줄에는 N의 진짜 약수가 주어진다. 1,000,000보다 작거나 같고, 2보다 크거나 같은 자연수이고, 중복되�
www.acmicpc.net
# @Author YoungMinKim
# baekjoon
from math import gcd
import sys
N = int(sys.stdin.readline())
f = list(sys.stdin.readline().split())
ls = sorted(list(map(int,f)))
print(ls[0]*ls[-1])
반응형
'백준 문제풀이' 카테고리의 다른 글
| baekjoon - python - 10886 (0) | 2020.09.17 |
|---|---|
| baekjoon - python - 11653 (0) | 2020.09.16 |
| baekjoon - python - 5086 (0) | 2020.09.16 |
| baekjoon - python - 15894 (0) | 2020.09.14 |
| baekjoon - python - 15890 (0) | 2020.09.14 |
댓글