4502: 习题2-8 求闰年

Memory Limit:12 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:69 Solved:27

Description

输出a至b年(包含a年和b年)间的所有闰年。

Input

一行两个整数a和b,空格隔开

Output

输出所有描述范围内的闰年,每个年份一行。

Sample Input Copy

1904 2000

Sample Output Copy

1904
1908
1912
1916
1920
1924
1928
1932
1936
1940
1944
1948
1952
1956
1960
1964
1968
1972
1976
1980
1984
1988
1992
1996
2000