๋ฌธ์
https://school.programmers.co.kr/learn/courses/30/lessons/12953
ํ์ด
from math import gcd
def solution(arr):
answer = arr[0]
for i in range(1, len(arr)):
answer = (answer*arr[i]) // gcd(answer, arr[i])
return answer
print(solution([1,2,3]))