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

I wish you a happy new year !

Options

exec is denied

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

Sample input:_

2008

Sample output:

2008 is a leap year.

Sample input:_

1500
1600
1700
1800
1900
2000
2100
2200
2300
2400
2500

Sample output:

1500 is not a leap year.
1600 is a leap year.
1700 is not a leap year.
1800 is not a leap year.
1900 is not a leap year.
2000 is a leap year.
2100 is not a leap year.
2200 is not a leap year.
2300 is not a leap year.
2400 is a leap year.
2500 is not a leap year.

Sample input:_

1728
2372
2347
2280
2328
1909
1834
1922
1902
1621
2265
2254
1958
1601
2333
1861
1741
2221
1986
1623
1629
1686
1739
2345
1623
2582
1742
2537
1618
1788
2322
2360
2459
2199
2411
2383
2323
2425
2276
2278
1845
1771
1924
2581
1825
2137
2359
1944
2548
2086
1975
1800
2366
2076
2000
2449
1742
2564
2308
2117
1601
1687
2020
2483
2401
2321
2433
2317
2338
1908
1815
2308
1652
1847
1707
2556
2345
2032
1745
1826
2113
2576
1869
2090
1981
2279
2129
2474
1857
2427
2193
2476
2394
2168
2343
1800
2559
2454
2252
1859

Sample output:

1728 is a leap year.
2372 is a leap year.
2347 is not a leap year.
2280 is a leap year.
2328 is a leap year.
1909 is not a leap year.
1834 is not a leap year.
1922 is not a leap year.
1902 is not a leap year.
1621 is not a leap year.
2265 is not a leap year.
2254 is not a leap year.
1958 is not a leap year.
1601 is not a leap year.
2333 is not a leap year.
1861 is not a leap year.
1741 is not a leap year.
2221 is not a leap year.
1986 is not a leap year.
1623 is not a leap year.
1629 is not a leap year.
1686 is not a leap year.
1739 is not a leap year.
2345 is not a leap year.
1623 is not a leap year.
2582 is not a leap year.
1742 is not a leap year.
2537 is not a leap year.
1618 is not a leap year.
1788 is a leap year.
2322 is not a leap year.
2360 is a leap year.
2459 is not a leap year.
2199 is not a leap year.
2411 is not a leap year.
2383 is not a leap year.
2323 is not a leap year.
2425 is not a leap year.
2276 is a leap year.
2278 is not a leap year.
1845 is not a leap year.
1771 is not a leap year.
1924 is a leap year.
2581 is not a leap year.
1825 is not a leap year.
2137 is not a leap year.
2359 is not a leap year.
1944 is a leap year.
2548 is a leap year.
2086 is not a leap year.
1975 is not a leap year.
1800 is not a leap year.
2366 is not a leap year.
2076 is a leap year.
2000 is a leap year.
2449 is not a leap year.
1742 is not a leap year.
2564 is a leap year.
2308 is a leap year.
2117 is not a leap year.
1601 is not a leap year.
1687 is not a leap year.
2020 is a leap year.
2483 is not a leap year.
2401 is not a leap year.
2321 is not a leap year.
2433 is not a leap year.
2317 is not a leap year.
2338 is not a leap year.
1908 is a leap year.
1815 is not a leap year.
2308 is a leap year.
1652 is a leap year.
1847 is not a leap year.
1707 is not a leap year.
2556 is a leap year.
2345 is not a leap year.
2032 is a leap year.
1745 is not a leap year.
1826 is not a leap year.
2113 is not a leap year.
2576 is a leap year.
1869 is not a leap year.
2090 is not a leap year.
1981 is not a leap year.
2279 is not a leap year.
2129 is not a leap year.
2474 is not a leap year.
1857 is not a leap year.
2427 is not a leap year.
2193 is not a leap year.
2476 is a leap year.
2394 is not a leap year.
2168 is a leap year.
2343 is not a leap year.
1800 is not a leap year.
2559 is not a leap year.
2454 is not a leap year.
2252 is a leap year.
1859 is not a leap year.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1flagitious620.13482008/01/03 02:14:230B / 33B / 21B
2ksk630.37782008/01/04 23:32:300B / 28B / 28B
3kt3k640.48132008/01/04 14:10:350B / 34B / 23B
4leonid640.13902008/01/06 14:32:360B / 29B / 28B
5shinh660.11292008/01/03 19:02:050B / 28B / 30B
6eban680.39352007/12/31 11:42:510B / 38B / 22B
7KEN3970.20992008/01/06 18:37:154B / 59B / 21B
8kaki990.12522008/01/01 00:54:390B / 51B / 42B
9tabasa1210.55922007/12/31 10:20:474B / 72B / 32B
10kaki700.18942008/07/22 18:13:520B / 36B / 27B

Perl _

RankUserSizeTimeDateStatistics
1ksk540.49212008/01/04 23:37:140B / 26B / 21B
2ySas570.07902008/01/02 14:06:470B / 26B / 29B
3shinh590.06872008/01/03 20:52:490B / 25B / 27B
4Mithran590.44262008/01/03 23:04:570B / 24B / 32B
5eban640.22152008/01/03 23:22:480B / 24B / 33B
6ott640.11342008/01/06 19:16:030B / 29B / 27B
7tabasa870.07622008/01/06 12:59:260B / 39B / 42B
8test1350.13932008/01/03 01:09:545B / ?B / ?B
9AdventChildren1380.10162008/01/03 01:18:180B / 74B / 55B
10tails (ksk)530.03402016/08/19 09:07:430B / 26B / 20B
11el1n610.09182012/05/04 08:29:200B / 27B / 27B

Python _

RankUserSizeTimeDateStatistics
1kt3k710.08542008/01/07 07:11:160B / 43B / 22B
2notogawa730.74422008/01/03 22:02:320B / 43B / 25B
3hirose760.20042008/01/06 00:22:260B / 44B / 28B
4zetamatta770.65412008/01/04 19:20:490B / 44B / 28B
5elb820.11172008/01/02 13:04:200B / 50B / 28B
6shinh820.13812008/01/05 18:03:260B / 41B / 31B
7dplusplus930.19472008/01/03 19:23:180B / 58B / 27B
8tabasa1390.16992008/01/06 08:31:507B / 84B / 28B
9durrburr770.09872016/05/21 12:24:360B / ?B / ?B
10reirei_As780.08522015/02/10 23:00:430B / ?B / ?B
11_790.09562015/02/10 22:31:360B / ?B / ?B
12purintai840.14082012/05/04 06:59:490B / 51B / 23B
13govind890.09092013/05/16 03:03:240B / ?B / ?B
14Vim Lover890.11152016/08/31 04:55:270B / ?B / ?B
15potato920.10812016/08/31 04:54:040B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1murky-satyr800.46602008/10/05 00:00:400B / 40B / 34B
2pooq840.41412008/10/04 19:29:500B / 49B / 29B
3Super-Tomato980.35962008/02/06 23:55:190B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1pla1070.19802008/01/06 07:58:060B / 63B / 36B
2murky-satyr970.15532008/07/04 01:50:480B / 56B / 31B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1050.35932007/12/31 15:01:460B / 57B / 35B
2pooq1150.37272008/01/06 18:07:010B / 63B / 39B
3pooq1020.34312008/01/10 23:48:330B / 57B / 32B
4ttmh1020.07472014/08/20 19:42:530B / 57B / 32B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr826.38132010/06/04 14:21:560B / 45B / 30B
2pooq10710.17722009/10/19 16:53:180B / 58B / 36B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr875.34982010/06/04 14:13:060B / 49B / 33B
2uochan1025.44752010/11/23 12:56:160B / ?B / ?B

Io _

RankUserSizeTimeDateStatistics
1pooq1403.76002008/01/05 22:08:290B / 87B / 42B
2murky-satyr1112.49132008/03/08 00:35:320B / 73B / 30B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr810.07552007/12/31 19:19:360B / 38B / 38B
2murky-satyr710.09742008/05/16 00:21:240B / 36B / 33B
3nn710.06862008/05/16 23:01:210B / 36B / 33B
451b740.06832008/05/15 17:58:420B / 39B / 31B
5tensaix2j810.06142008/01/11 20:51:560B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr930.06672008/06/01 02:37:250B / 54B / 32B

Tcl _

RankUserSizeTimeDateStatistics
1tensaix2j900.10172008/01/01 18:53:120B / ?B / ?B
2murky-satyr820.12582008/07/07 20:41:130B / 47B / 24B
3tensaix2j890.07312008/01/11 20:53:570B / ?B / ?B

Xtal _

RankUserSizeTimeDateStatistics
1murky-satyr1020.51422007/12/31 20:29:230B / 52B / 43B
2murky-satyr960.46492008/05/16 00:38:500B / 48B / 41B

REXX _

RankUserSizeTimeDateStatistics
1pooq860.03982012/05/05 10:02:220B / 48B / 22B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr1230.30272008/01/01 09:52:010B / 80B / 33B
2murky-satyr1030.53032008/05/16 00:36:320B / 68B / 27B

Forth _

RankUserSizeTimeDateStatistics
151b1430.36772008/01/04 11:14:090B / 90B / 18B
251b1360.02522009/06/07 05:30:040B / 86B / 18B

BASIC _

RankUserSizeTimeDateStatistics
1pooq940.26822008/01/04 09:36:020B / 56B / 29B
2*yuko*790.01192010/03/14 22:57:320B / 45B / 28B

Perl6 _

RankUserSizeTimeDateStatistics
1tails (%20)591.75502017/07/06 12:40:550B / 30B / 22B
2%20701.61162017/07/04 20:14:050B / 33B / 30B

Erlang _

RankUserSizeTimeDateStatistics
151b1680.96302008/01/01 20:23:120B / 89B / 69B

J _

RankUserSizeTimeDateStatistics
1pooq750.90842008/01/04 21:45:220B / 34B / 32B
2I., S.660.09612011/03/06 21:58:010B / 27B / 32B

Mind _

RankUserSizeTimeDateStatistics
1pooq1710.04722008/01/05 21:08:5979B / 32B / 21B

C _

RankUserSizeTimeDateStatistics
151b900.02902008/01/05 11:25:290B / 46B / 39B
2hinoe900.09592008/01/06 00:03:090B / 47B / 38B
3letter900.09462008/01/07 01:49:020B / 47B / 38B
4ozy4dm910.46022008/01/04 16:40:330B / 48B / 38B
5notogawa930.04572007/12/31 13:03:350B / ?B / ?B
6shinh930.04612008/01/05 17:47:540B / 51B / 37B
7pla940.09862008/01/07 05:11:160B / 50B / 39B
8kurimura950.05342008/01/05 04:25:100B / 51B / 39B
9kt3k950.08112008/01/07 06:54:400B / 47B / 43B
10akrwkd1000.26132008/01/04 00:24:250B / ?B / ?B
11tensaix2j1010.04932008/01/01 18:46:000B / ?B / ?B
12tabasa1580.05162008/01/06 10:51:151B / 85B / 61B
13nu(%20(hinoe))840.03742017/07/10 08:53:060B / 48B / 31B
14%20(hinoe)850.03182016/08/19 09:30:270B / 48B / 32B
15hinoe860.00262011/08/26 00:34:440B / 47B / 34B
16feiq900.05252009/06/05 22:35:100B / ?B / ?B
17_900.00172010/09/09 01:17:500B / ?B / ?B
18frah1040.03202016/08/18 12:53:420B / ?B / ?B

C++ _

RankUserSizeTimeDateStatistics
1pla1140.03892008/01/07 08:28:430B / 65B / 42B
2abc1650.04172008/01/05 16:25:251B / ?B / ?B
3Shax1030.10462008/05/09 05:48:111B / 59B / 36B

D _

RankUserSizeTimeDateStatistics
151b1130.07442008/01/05 11:31:040B / 65B / 39B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1160.21202007/12/31 18:25:000B / 64B / 45B
2elb1200.13092008/01/03 09:28:070B / 76B / 35B
3kozima1250.32692007/12/31 18:18:360B / 85B / 25B
4chun1300.18002008/01/06 12:15:530B / 85B / 28B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1010.60472008/01/02 19:14:250B / ?B / ?B
2Kee1210.04152008/01/01 01:08:480B / 64B / 45B
3mulder_fbi1220.11152008/01/07 08:06:250B / 74B / 40B
4test2400.06302007/12/31 09:08:060B / 135B / 38B
5peryaudo1330.03432013/12/03 11:27:280B / 76B / 41B

Java _

RankUserSizeTimeDateStatistics
1teebee1870.37112010/11/07 07:16:490B / ?B / ?B
2Roy van Rijn2120.62952009/01/30 03:05:270B / 127B / 74B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1170.00242011/03/12 01:44:420B / 77B / 27B
2uru1280.06862009/06/30 23:27:460B / 81B / 32B
3pooq1420.05922009/01/21 18:34:370B / 92B / 35B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*860.06342011/11/21 05:08:590B / 50B / 30B

C# _

RankUserSizeTimeDateStatistics
1Zaren1840.16252013/03/15 05:11:250B / 117B / 56B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2380.00822011/07/24 21:26:450B / 172B / 37B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1260.63902012/05/03 17:43:120B / 73B / 43B

Octave _

RankUserSizeTimeDateStatistics
1pooq860.68922011/10/23 08:09:410B / 49B / 31B

REBOL _

RankUserSizeTimeDateStatistics
1oofoe1540.15742009/02/11 18:22:540B / 88B / 39B

Asymptote _

RankUserSizeTimeDateStatistics
1chocobi1005.12802009/03/31 20:48:200B / 53B / 41B

AWK _

RankUserSizeTimeDateStatistics
1eban500.21182008/01/03 23:21:250B / 24B / 22B
2kt3k520.06572008/01/06 14:48:570B / 24B / 23B
3tabasa620.04692008/01/06 15:00:040B / 30B / 27B
4kt3k450.03142008/01/07 23:39:040B / 20B / 21B
5eban480.10662008/01/07 12:32:090B / 23B / 21B

sed _

RankUserSizeTimeDateStatistics
1kt3k720.07082008/01/07 04:52:380B / 35B / 30B
2eban740.05352008/01/06 21:52:300B / 38B / 26B
3shinh750.06882008/01/05 06:04:530B / 35B / 33B
4%20720.03262016/08/19 10:09:160B / 35B / 30B

Bash _

RankUserSizeTimeDateStatistics
1eban810.10412008/01/01 04:19:530B / 49B / 19B
2eban750.11442008/01/08 01:40:350B / 45B / 17B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails610.05182017/07/04 16:39:270B / 33B / 19B

dc _

RankUserSizeTimeDateStatistics
1tails610.06492017/07/05 10:08:220B / 36B / 19B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii500.03262014/03/15 02:04:060B / 24B / 22B
2mitchs (llhuii)530.03302014/03/15 01:48:560B / 25B / 23B

Postscript _

RankUserSizeTimeDateStatistics
1ySas760.49382007/12/31 13:41:0918B / 34B / 19B
2yshl(bin)781.86192008/01/04 11:10:0520B / 39B / 14B
3yshl1112.02332008/01/04 11:09:510B / 78B / 18B

R _

RankUserSizeTimeDateStatistics
1murky-satyr873.67692008/05/31 23:22:190B / 47B / 38B
2pooq953.66922008/05/31 20:56:230B / 52B / 40B

Befunge _

RankUserSizeTimeDateStatistics
1hess980.00622009/12/12 22:04:006B / 33B / 42B

GolfScript _

RankUserSizeTimeDateStatistics
1flagitious450.40352008/01/03 02:00:560B / 21B / 19B
2irori450.42772008/01/06 10:58:310B / 19B / 21B
351b490.33302008/01/06 11:36:040B / 24B / 18B
4shinh530.43842008/01/05 21:05:460B / 20B / 27B
5leonid540.42512008/01/03 01:57:250B / 22B / 27B
6strager570.31092009/10/25 13:37:380B / 27B / 25B

gs2 _

RankUserSizeTimeDateStatistics
1tails360.25822017/07/04 17:41:359B / 21B / 1B
2whio390.24382017/07/07 01:32:1811B / 21B / 3B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu450.51402010/10/16 02:09:060B / ?B / ?B

Unlambda _

RankUserSizeTimeDateStatistics
1irori3690.06132008/01/02 19:44:240B / 155B / 209B

z80 _

RankUserSizeTimeDateStatistics
1kodera590.17452008/01/05 01:43:4045B / 5B / 8B
2ySas620.24852008/01/06 21:10:0441B / 7B / 12B

Vim _

RankUserSizeTimeDateStatistics
1pla640.41582008/01/07 01:01:165B / 30B / 23B
2eban820.37192008/01/06 22:18:410B / 41B / 31B
3pla590.52492008/01/07 09:24:255B / 29B / 19B
4eban760.43192008/01/07 13:56:450B / 37B / 30B

goruby _

RankUserSizeTimeDateStatistics
1flagitious610.89202008/01/03 02:42:570B / 29B / 25B
2ksk620.18662008/01/07 04:02:230B / 30B / 27B
3eban630.53512008/01/07 02:41:160B / 35B / 19B
4shinh750.56342008/01/05 05:09:200B / 38B / 28B
5tabasa1150.63882008/01/06 14:42:024B / 67B / 32B
6murky-satyr580.36242008/07/17 09:03:470B / 29B / 22B
7leonid590.39002008/07/17 06:44:370B / 29B / 23B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr809.53782008/03/14 02:35:450B / 51B / 24B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr9810.38232011/02/28 02:43:450B / 56B / 36B
2pooq1028.62502011/02/27 00:15:120B / 61B / 33B

Language Ranking_

RankLangUserSizeScore
1gs2tails3610000
2GolfScriptflagitious458000
3AWKkt3k458000
4FlogScriptmilieu458000
5xgawkllhuii507200
6Perltails (ksk)536792
7gorubymurky-satyr586206
8z80kodera596101
9Vimpla596101
10Perl6tails (%20)596101
11Bash (builtins)tails615901
12dctails615901
13Rubyflagitious625806
14JI., S.665454
15Pythonkt3k715070
16JavaScriptnn715070
17sedkt3k725000
18Basheban754800
19PostscriptySas764736
20BASIC*yuko*794556
21Groovymurky-satyr804500
22PHPmurky-satyr804500
23Tclmurky-satyr824390
24Arcmurky-satyr824390
25Cnu(%20(hinoe))844285
26Octavepooq864186
27Fortran*yuko*864186
28REXXpooq864186
29Rmurky-satyr874137
30Clojuremurky-satyr874137
31Luamurky-satyr933870
32Xtalmurky-satyr963750
33Schememurky-satyr973711
34Befungehess983673
35Scalamurky-satyr983673
36Asymptotechocobi1003600
37Haskellnotogawa1013564
38Common LISPttmh1023529
39C++Shax1033495
40Smalltalkmurky-satyr1033495
41Iomurky-satyr1113243
42D51b1133185
43OCamlksk1163103
44Pascal*yuko*1173076
45Maximapooq1262857
46Forth51b1362647
47REBOLoofoe1542337
48Erlang51b1682142
49Mindpooq1712105
50C#Zaren1841956
51Javateebee1871925
52COBOL*yuko*2381512
53Unlambdairori369975

return to the top page