#include <iostream>
#include <cstdio>
#include <math.h>
#define end if(n == 0)break;
using namespace std;
int main(){
long long int n, i, m, o;
for(i =1; ;i++){
scanf("%lld", &n);
end;
m = sqrt(n);
o = m * m;
if(o == n)
printf("yes\n");
else
printf("no\n");
}
return 0;
}
#include <cstdio>
#include <math.h>
#define end if(n == 0)break;
using namespace std;
int main(){
long long int n, i, m, o;
for(i =1; ;i++){
scanf("%lld", &n);
end;
m = sqrt(n);
o = m * m;
if(o == n)
printf("yes\n");
else
printf("no\n");
}
return 0;
}
No comments:
Post a Comment