반응형
# @Author YoungMinKim
# baekjoon
def gcd(a,b):
if a<b:
a,b=b,a
while b!=0:
a,b= b,a%b
return a
def lcm(a,b):
return a*b // gcd(a,b)
a,b= map(int,input().split())
print(lcm(a,b))
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 14645 (0) | 2020.09.14 |
---|---|
baekjoon - python - 13752 (0) | 2020.09.14 |
baekjoon - python - 11866 (0) | 2020.09.14 |
baekjoon - python - 2164 (0) | 2020.09.13 |
baekjoon - python - 11942 (0) | 2020.09.13 |
댓글