Advertisement
mhdew

F

Nov 29th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int n;
  6.     scanf("%d", &n);
  7.     while(n--){
  8.       long long x;
  9.       scanf("%lld", &x);
  10.  
  11.       long long y=sqrt(x);
  12.  
  13.       if((y*y)==x) printf("YES\n");
  14.       else printf("NO\n");
  15.  
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement