hdoj 2053Switch Game

来源:互联网 发布:淘宝宝贝详情教程 编辑:程序博客网 时间:2024/05/22 01:30
好久之前写过的题,现在来看,突然当初自己有多水,尽管现在还是很水。明明**根据对称性**判断是否是平方数即可的题目当初自己写了好多行。**传送门: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;   }
原创粉丝点击