All Submissions


Write a program to check whether the given year is leap year or not. The convention rules of leap year is as stated in Wikipedia.

Input
The first line contains a single integer T, the number of test cases. T lines follow containing a year each in the format yyyy.

Output
Output YES or NO for each test case in seperate line.

Constraint
T < 10000
1000 <= year <= 9999

Sample Input
4
2000
2001
1900
2004


Sample Output
YES
NO
NO
YES


Problem Source : C Programming Lab Sheet
Problem Tester : Shikhar Sharad


Languages: Brain,C,C++,Java,Pascal,Perl,PHP,Python,Ruby,Text

Time Limit: 1 Second(s)
Score: 0 Point(s)
Input File Limit: 50000 Bytes

Submit

Login to post clarification.

No Clarifications.

Contest

Mode Judge

Passive

Online

Overall Rankings

RankNameScore
1xyz0
2Ams0
3TIP0
4team420
5xyzz0
6asdasdasd0
7abcd0
8khankhan0
9Gabriel0
10gigel0