abs
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 808 Accepted Submission(s): 293
#include
#include
#include
#include
#include
const long long INF=0x7fffffffffffffll;
using namespace std;
long long ans;
long long n;
bool work(long long x)
{
if(x<2)
{
return false;
}
long long t=x;
for(long long i=2;i*i<=x;i++)
{
if(x%i==0)
{
if(x%(i*i)==0)
{
return false;
}
x/=i;
}
}
// cout<>t;
while(t--)
{
scanf("%lld",&n);
long long x=(long long)(sqrt(n)+0.5);
cout<