BlueBook
Given non-negative year values, where each year is , determine whether or not each one is a leap year.
Remember: A year is a leap year if it is divisible by but not by or if it is divisible by . is considered a leap year.
Input Specification
Line : A single integer representing the number of test cases (years to be entered)
Next lines: Each year value
Output Specification
Lines : one integer 1
or 0
denoting whether is a leap year. Output 1
if is a leap year, and 0
otherwise.
Sample Input
4
0
4
100
400
Sample Output
1
1
0
1
Comments