15 solutions

  • 0
    @ 2022-7-4 13:03:41

    #include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll n,res=1; cin>>n; for(ll i=2;i<=n;i++) { ll gcc=0; while(n%i0) { n/=i; gcc++; } if(gcc%21)res*=i; } cout<<res; return 0; }

    Information

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