Factorial

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

Calculate Factorial!
-leonid

Options

exec is denied

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

Sample input:_

1
3
4
0
6
9
2
10
8

Sample output:

1
6
24
1
720
362880
2
3628800
40320

Sample input:_

15
4
0
3
0
40
23

Sample output:

1307674368000
24
1
6
1
815915283247897734345611269596115894272000000000
25852016738884976640000

Sample input:_

50
3
100
76

Sample output:

30414093201713378043612608166064768844377641568960512000000000000
6
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
1885494701666050254987932260861146558230394535379329335672487982961844043495537923117729972224000000000000000000

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1kinaba340.18932007/11/15 22:44:300B / 13B / 17B
2leonid340.09202007/11/15 23:18:450B / 13B / 17B
3ksk340.17742007/11/16 00:19:110B / 13B / 17B
4flagitious340.13312007/11/16 00:22:350B / 13B / 17B
5eban340.19432007/11/17 02:44:000B / 13B / 17B
6usa340.29142007/11/17 02:58:010B / 13B / 17B
7shinh340.18572007/11/17 12:45:150B / 13B / 17B
8niha340.19112007/11/21 21:55:480B / 13B / 17B
9fsystem360.17172007/12/13 11:33:010B / ?B / ?B
10Mark Byers380.12762007/11/15 19:36:070B / 19B / 17B
11oto-oto-oto380.12352007/12/12 14:57:420B / 17B / 17B
12yowa410.17242007/11/16 17:26:310B / 18B / 19B
13kt3k420.18862007/11/29 08:34:270B / 20B / 17B
14tabasa490.07952007/11/16 10:50:500B / 28B / 19B
15kaki340.23622008/05/30 02:03:050B / 13B / 17B
16test340.03872016/03/15 19:18:540B / ?B / ?B
17meh350.11442009/02/24 02:38:361B / ?B / ?B
18ehird460.07962008/01/24 10:35:150B / ?B / ?B
19inaniwa800.05022012/04/12 17:44:157B / 33B / 13B

Perl _

RankUserSizeTimeDateStatistics
1ySas371.18142007/11/15 20:27:090B / 22B / 14B
2ott371.61642007/11/17 23:31:420B / 20B / 14B
3eban541.39692007/11/17 03:21:020B / 32B / 19B
4teebee(tybalt89)350.30982011/03/12 08:53:590B / 20B / 12B
5prakash470.47352010/02/19 06:18:070B / 31B / 14B
6jonathan camacho660.11662014/09/07 21:32:590B / 40B / 24B

Python _

RankUserSizeTimeDateStatistics
1hirose460.13962007/11/15 19:18:160B / 28B / 16B
2kt3k460.23962007/11/16 03:52:360B / 28B / 16B
3Mark Byers460.11342007/11/16 04:31:420B / 25B / 19B
4Defenestrator460.65142007/11/21 07:05:310B / 28B / 16B
5zetamatta500.26262007/11/18 00:05:580B / 33B / 13B
6dplusplus510.13692007/12/03 19:55:560B / ?B / ?B
7elb550.09482007/11/15 23:18:060B / 36B / 11B
8kamezou550.14712007/11/23 15:53:150B / 38B / 14B
9tabasa780.11592007/11/18 14:20:334B / 44B / 17B
10pankdm480.08792010/05/22 02:28:180B / ?B / ?B
11durrburr500.09342016/05/21 12:03:410B / ?B / ?B
12potato590.09852016/08/10 07:48:291B / ?B / ?B
13VaughnSR590.08742016/12/07 11:01:460B / ?B / ?B
14Bakuriu1410.04522009/08/22 23:02:200B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1daira900.35532007/11/16 09:56:260B / 48B / 41B
2pooq680.40232008/10/17 23:26:510B / 35B / 32B
3murky-satyr750.36742008/10/07 12:13:530B / 44B / 29B

Scheme _

RankUserSizeTimeDateStatistics
1pla480.55002007/11/22 04:55:400B / 32B / 14B
2cddddr480.11992011/04/15 17:54:350B / 32B / 14B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima300.41002007/11/15 22:57:270B / 16B / 12B

Arc _

RankUserSizeTimeDateStatistics
1pooq3414.23702009/10/10 23:41:480B / 23B / 9B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr405.20632010/05/31 16:59:200B / 25B / 12B
2pooq422.94052010/02/20 14:19:210B / 25B / 14B
3uochan435.45192010/11/23 01:11:240B / ?B / ?B

LilyPond _

RankUserSizeTimeDateStatistics
1KirarinSnow452.29042009/12/15 07:13:040B / 27B / 16B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1140.23952008/11/07 23:44:290B / 60B / 54B
2murky-satyr1230.21202008/10/07 12:23:010B / 64B / 59B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1650.06662008/06/05 03:13:010B / 103B / 40B

Icon _

RankUserSizeTimeDateStatistics
1teebee(pooq)680.05432012/04/04 15:31:410B / 45B / 17B
2pooq790.04512012/03/28 20:23:060B / 53B / 17B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq220.08862012/03/26 21:12:420B / 16B / 6B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr620.37732007/11/25 20:19:090B / 49B / 10B
2murky-satyr470.43552008/04/10 22:04:070B / 38B / 5B

Prolog _

RankUserSizeTimeDateStatistics
1pooq850.25322008/08/17 17:42:410B / 44B / 35B

Erlang _

RankUserSizeTimeDateStatistics
151b1251.02442007/11/16 06:28:100B / 58B / 63B

J _

RankUserSizeTimeDateStatistics
1kinaba190.15802007/11/15 21:41:240B / 7B / 12B
2cddddr200.12282011/05/12 21:21:550B / 10B / 10B

C _

RankUserSizeTimeDateStatistics
151b1590.02842007/11/23 12:48:350B / 80B / 79B
2yowa2110.15752007/11/17 13:51:570B / 93B / 117B
3tabasa7110.10232007/11/17 13:09:3543B / 327B / 249B

D _

RankUserSizeTimeDateStatistics
151b1720.06582007/11/23 12:50:330B / 93B / 76B
251b1050.00252009/11/22 21:28:160B / 68B / 33B

Go _

RankUserSizeTimeDateStatistics
1uru2000.00172009/12/31 15:29:070B / 125B / 69B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1170.25852007/11/21 21:40:470B / 75B / 36B
2m.ukai1180.11832007/11/22 10:41:180B / 79B / 32B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa410.48112007/11/16 22:28:420B / ?B / ?B
2_410.03032007/11/16 22:33:300B / 29B / 11B
3Defenestrator410.12752007/11/21 07:02:350B / 29B / 11B
4FalconNL410.06552008/10/17 18:59:510B / 29B / 11B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*2270.02822014/03/01 21:54:150B / 148B / 58B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1220.03462012/12/02 00:09:320B / 72B / 35B

Maxima _

RankUserSizeTimeDateStatistics
1pooq480.51412011/03/11 12:11:010B / 21B / 25B

AWK _

RankUserSizeTimeDateStatistics
1llhuii(nn)750.35972014/09/08 00:30:220B / 34B / 41B
2nn830.92362008/10/11 12:27:300B / 39B / 42B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails1100.78022016/12/08 11:10:540B / 40B / 64B

dc _

RankUserSizeTimeDateStatistics
1tails320.04022016/12/08 11:44:390B / 21B / 11B

Postscript _

RankUserSizeTimeDateStatistics
1Mark Byers890.51542007/11/23 05:56:3125B / 35B / 28B
2yshl(bin)920.62482007/12/07 06:52:1935B / 31B / 23B
3ySas1030.55312007/11/17 12:59:4039B / 38B / 26B
4Mark Byers (no binary)1370.89562007/11/24 08:29:400B / 81B / 40B
5yshl1560.45372007/12/01 22:31:510B / 111B / 26B
6yshl(bin)870.51422007/12/13 21:10:5130B / 31B / 24B
7yshl1450.49292007/12/13 21:10:380B / 102B / 26B

Whitespace _

RankUserSizeTimeDateStatistics
1yowa940.03872007/11/16 16:42:060B / 0B / 0B
2Mark Byers950.20632007/11/16 05:23:040B / 0B / 0B
3%20930.03972015/01/18 03:53:140B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1narb140.15672011/02/18 21:44:120B / 2B / 12B
2leonid150.32042008/01/03 04:50:590B / 1B / 14B
3kt3k150.33532008/01/03 07:26:420B / 1B / 14B
4flagitious170.37692007/12/16 03:55:410B / 3B / 14B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs40.23782015/06/27 12:30:350B / 3B / 1B
2whio40.31222015/10/07 01:34:280B / 3B / 1B
3%2090.24842015/06/27 11:33:291B / 5B / 3B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu120.20922012/03/26 21:31:360B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik60.03512014/05/08 01:36:540B / 3B / 3B
2teebee220.03522012/09/16 03:09:520B / 10B / 12B
3mroman280.03632012/09/16 02:46:360B / 14B / 14B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr230.40892008/11/08 09:57:380B / 9B / 12B
2leonid250.33602008/02/08 23:47:320B / 9B / 14B
3flagitious280.35082007/12/26 11:53:210B / 13B / 13B
4tabasa460.19922007/12/26 11:04:100B / 25B / 19B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr606.18292010/09/19 18:43:070B / 41B / 16B
2nn6111.91862008/04/17 23:40:490B / 44B / 14B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr4620.76112011/03/20 20:13:090B / 37B / 7B
2pooq5110.85062011/02/18 15:05:080B / 31B / 18B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs410000
2BurlesqueHendrik66666
3FlogScriptmilieu123333
4GolfScriptnarb142857
5Jkinaba192105
6PARI/GPpooq221818
7gorubymurky-satyr231739
8Common LISPkozima301333
9dctails321250
10Rubykinaba341176
11Arcpooq341176
12Perlteebee(tybalt89)351142
13Clojuremurky-satyr401000
14Haskellnotogawa41975
15LilyPondKirarinSnow45888
16Pythonhirose46869
17Scalamurky-satyr46869
18Smalltalkmurky-satyr47851
19Schemepla48833
20Maximapooq48833
21Groovymurky-satyr60666
22PHPpooq68588
23Iconteebee(pooq)68588
24AWKllhuii(nn)75533
25Prologpooq85470
26Postscriptyshl(bin)87459
27Whitespace%2093430
28D51b105380
29Bash (builtins)tails110363
30JavaScriptnn114350
31OCamlksk117341
32Fortran*yuko*122327
33Erlang51b125320
34C51b159251
35Luamurky-satyr165242
36Gouru200200
37Pascal*yuko*227176

Referer

Note that, they may contain spoilers.

return top