https://school.programmers.co.kr/learn/courses/30/lessons/12953
import math
def solution(arr):
while len(arr) > 1:
a = arr.pop()
b = arr.pop()
arr.append(a*b // math.gcd(a, b))
return arr[0]
#math #gcd #공약수 #최대공약수 #공배수 #최소공배수