#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
for(long long i = 2; i * i <= n; ++i){
while(n % (i * i) == 0) n /= i * i;
}
cout << n;
return 0;
}
【每日一题】蓝桥杯Day04
最新推荐文章于 2024-08-24 22:02:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)