fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main(){
  4. float N;
  5. scanf("%f", &N);
  6. int S = sqrt(N);
  7. if(S*S==N){
  8. printf("YES");
  9. }else{
  10. printf("NO");
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 5304KB
stdin
4
stdout
YES