Leap Year

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

In the Gregorian calendar, a leap year is created by extending February to 29 days in order to keep the calendar year synchronized with the astronomical year. These longer years occur in years which are multiples of 4, with the exception of centennial years that aren’t multiples of 400.

Write a program to print all the leap years from the year 2000 up to n.

The inputted name must be your team name
and the lnaguage must be python3

We hope you have fun

Options

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

2040

Sample output:

2000
2004
2008
2012
2016
2020
2024
2028
2032
2036
2040

Sample input:_

2080

Sample output:

2000
2004
2008
2012
2016
2020
2024
2028
2032
2036
2040
2044
2048
2052
2056
2060
2064
2068
2072
2076
2080

Sample input:_

2222

Sample output:

2000
2004
2008
2012
2016
2020
2024
2028
2032
2036
2040
2044
2048
2052
2056
2060
2064
2068
2072
2076
2080
2084
2088
2092
2096
2104
2108
2112
2116
2120
2124
2128
2132
2136
2140
2144
2148
2152
2156
2160
2164
2168
2172
2176
2180
2184
2188
2192
2196
2204
2208
2212
2216
2220

Ranking

Perl _

RankUserSizeTimeDateStatistics
1test1390.04412021/02/28 04:01:070B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1Noobros880.08992021/02/28 00:51:560B / ?B / ?B
2Team Titans880.11502021/02/28 08:08:460B / ?B / ?B
3Logic Leads1180.08902021/02/28 05:09:436B / ?B / ?B
4BugCreators2410.09112021/02/27 20:20:359B / ?B / ?B
5Pi!=22/7820.08802021/02/28 14:14:193B / 47B / 20B

Python3 _

RankUserSizeTimeDateStatistics
1McBusLuck560.13412021/02/28 06:09:460B / 33B / 22B
2Internal Server Error670.13952021/02/28 07:25:450B / 40B / 24B
3Prajwal Adsul760.13412021/02/28 04:26:080B / ?B / ?B
4LeoCode760.13452021/02/28 04:32:550B / ?B / ?B
5BugCreators820.13592021/02/28 02:55:310B / ?B / ?B
6Noobros870.13432021/02/28 02:52:540B / ?B / ?B
7_880.13632021/02/28 04:22:060B / ?B / ?B
8Team Titans880.15472021/02/28 08:06:200B / ?B / ?B
9phAyce1310.13542021/02/28 00:42:070B / ?B / ?B
10Noobros800.13982021/02/28 13:47:150B / ?B / ?B

Perl6 _

RankUserSizeTimeDateStatistics
1Hydrazer391.65292021/10/13 11:08:470B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
1zzo38(up to 2222)760.04212021/05/02 12:40:430B / 39B / 37B
2zzo38800.04082021/04/30 14:22:590B / 41B / 39B

AWK _

RankUserSizeTimeDateStatistics
1teebee370.04302021/06/03 04:55:560B / 21B / 15B
2Fleur460.04312021/06/02 23:13:590B / ?B / ?B

Postscript _

RankUserSizeTimeDateStatistics
1zzo38(up to 2222)480.22562021/05/03 06:31:520B / 35B / 6B
2zzo38750.22562021/05/03 07:08:510B / 53B / 12B

gs2 _

RankUserSizeTimeDateStatistics
1whio170.26492021/03/10 05:31:127B / 7B / 3B

Language Ranking_

RankLangUserSizeScore
1gs2whio1710000
2AWKteebee374594
3Perltest1394358
4Perl6Hydrazer394358
5Postscriptzzo38(up to 2222)483541
6Python3McBusLuck563035
7Czzo38(up to 2222)762236
8PythonPi!=22/7822073

return to the top page