1.それが平方数かどうかを判別
#include <stdio.h>
#include <math.h>
int main()
{
int a;
scanf("%d",&a);
if(sqrt(a)==(int)sqrt(a)) //sqrt()平方根函数
printf("Y");
else
printf("N");
return 0;
}
C言語の一般的に使用される関数ライブラリhttp://c.biancheng.net/c/ref/list_288_2.html