#include<stdio.h>
#include<math.h>
//题意就是求2-N中N的约数个数,奇灭偶亮,类型转换时注意精度的变化
int main()
{
//freopen("10110in.txt","r",stdin);
//freopen("10110out.txt","w",stdout);
long long tag,n;
while(scanf("%lld",&n)&&n)
{
tag=(long long)sqrt(n);
if(n==tag*tag)printf("yes\n");
else printf("no\n");
}
return 0;
}
UVA - 10110 - Light, more light
最新推荐文章于 2016-08-10 20:31:37 发布