-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathp7.cpp
35 lines (33 loc) · 825 Bytes
/
p7.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/************************************************************************/
/* Name: Towfiqul Islam */
/* uva id: 448714 */
/* email id: towfiq.106@gmail.com */
/* institute: IIUC */
/* address: Chittagong, Bangladesh */
/* */
/************************************************************************/
#include<iostream>
#include<cstdio>
using namespace std;
int main ()
{
int t,n,i,k;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
k=0;
for(i=0;i*i<=n;i++)
{
if(i*i == n)
{
k=1;
printf("YES\n");
break;
}
}
if(k == 0)
printf("NO\n");
}
return 0;
}