[Programmers] 최대공약수와 최소공배수
Python
import math
def solution(n, m):
answer = [math.gcd(n, m), ((n * m) // math.gcd(n, m))]
return answer
import math
def solution(n, m):
answer = [math.gcd(n, m), ((n * m) // math.gcd(n, m))]
return answer
댓글남기기