1 条题解

  • 0
    @ 2024-2-6 13:05:31
    def gcd(a, b):
        while b:
            a, b = b, a % b
        return a
    def lcm(a, b):
        return a * b / gcd(a, b)
    a=int(input())
    b=int(input())
    print(int(lcm(a,b)))
    
    • 1

    信息

    ID
    1373
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    递交数
    20
    已通过
    12
    上传者