first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import java.util.Scanner;
public class Main {
static String cp(int n){
int x=(int)Math.sqrt((double)n);
return x*x==n?"YES":"NO";
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t=sc.nextInt();
for(int i=0;i<t;i++){
int s=sc.nextInt();
System.out.println(cp(s));
}
sc.close();
}
}