BETA
School Problem's Submission isn't counted in score!

Submissions: 1858 Accuracy:

50.05%

Check if a number is Perfect Square
     

Given a natural number n, print 1 if it is perfect square else 0.

Input:
The first line of input contains an integer T denoting the number of test cases. The first line of each test case is N, N is the number to be checked whether perfect square or not.

Output:
1 if it is perfect square else 0 

Constraints:
1 <= T <= 30
1 <= N <= 100000

Example:
Input:

3
100
10
125

Output:
1
0
0

** For More Input/Output Examples Use 'Expected Output' option **

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.