HDU2053
水题,自己打表观察规律搞定
#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
#define RF freopen("1.txt", "r", stdin);
#define WF freopen("11.txt", "w", stdout);
int main()
{
// RF
int n;
while( ~scanf("%d", &n) )
{
int x = (int)sqrt(n);
if( x*x == n) printf("1\n");
else printf("0\n");
}
return 0;
}