백준 알고리즘/수학

백준 2609번 파이썬

paysmile 2018. 10. 3. 12:41


from fractions import gcd

def gcdlcm(a, b):

    return a*b/gcd(a,b)

a,b = map(int, input().split())

print(int(gcd(a,b)))

print(int(gcdlcm(a,b)))