BETA
This is a school problem. Successful submissions of this are not counted in user ratings.

Submissions : 1663 Accuracy :

49.25

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 Examples Use Expected Output**


Set Default Code

					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



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