import math def find_lcm(a: int, b: int) -> int: """ 计算两个正整数a和b的最小公倍数(LCM) """ gcd_value = math.gcd(a, b) lcm_value = abs(a * b) // gcd_value return lcm_value # 示例 a, b = map(int, input().split()) lcm_result = find_lcm(a, b) print(lcm_result)
import math def find_lcm(a: int, b: int) -> int: """ 计算两个正整数a和b的最小公倍数(LCM) """ gcd_value = math.gcd(a, b) lcm_value = abs(a * b) // gcd_value return lcm_value # 示例 a, b = map(int, input().split()) lcm_result = find_lcm(a, b) print(lcm_result)