[파이썬/python] 백준 13241번 : 최소공배수 (🥈5) (유클리드호제법)

https://www.acmicpc.net/problem/13241

a,b = map(int,input().split())
aa,bb = a,b
while b!=0 :
    a,b = b,a%b
print(aa*bb//a)

 

comment