Run ID:87176
提交时间:2024-08-04 16:01:56
import math def max_gongyueshu(a,b): return math.gcd(a,b) def min_gongbeishu(a,b): return math.lcm(a,b) a,b=map(int,input().split()) print(max_gongyueshu(a,b),end=" ") print(min_gongbeishu(a,b))