#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; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account