본문 바로가기

Language/Python

python 최소공배수

from math import gcd

def test(a,b):
    return a*b // gcd(a,b)
반응형

'Language > Python' 카테고리의 다른 글

python Trie 알고리즘  (0) 2020.04.20
python input  (0) 2020.04.14
python list, dictionary comprehension  (0) 2020.03.18
windows10에서 virtualenv 설치 및 작동방법  (0) 2020.03.18
python heapq  (0) 2020.02.20