Run ID:87178

提交时间:2024-08-04 16:04:30

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),end="")