15 solutions

  • 0
    @ 2023-8-22 22:31:44

    打卡喵

    from math import *
    
    n = int(input())
    i = 2
    while i <= n / i:
        while n % (i * i) == 0:
            n /= i * i
        i += 1
    
    print(int(n))
    

    Information

    ID
    189
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    484
    Accepted
    89
    Uploaded By