10110 - Light, more light

/*

对这种数据类型题表示强烈抗议,2^32-1......要用long,oh!mygod!wa了无数次

*/

#include<stdio.h>
#include<math.h>
int main()
{
 long long n,s;
 while(scanf("%lld",&n)!=EOF&&n!=0)
 {
  s=(long long)sqrt((double)n);
  if(s*s==n)
   printf("yes\n");
  else
   printf("no\n");
 }
 return 0;
}

你可能感兴趣的:(more)