好久之前写过的题,现在来看,突然当初自己有多水,尽管现在还是很水。明明**根据对称性**判断是否是平方数即可的题目当初自己写了好多行。
**传送门:http://acm.hdu.edu.cn/showproblem.php?pid=2053**
#include <stdio.h>
#include <math.h>
int main()
{
int k;
while(scanf("%d",&k)!=EOF)
sqrt(k)==(int)(sqrt(k))?printf("1\n"):printf("0\n");
return 0;
}