## BlueBook - Leap Year

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type
##### 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 4 but not by 100 or if it is divisible by 400. 0 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