Central binomial coefficient 2

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

Given an integer N compute the Nth central binomial coefficient.

The first line of the input is the number of test cases,then T test cases follows.

Note:This task is exactly identical to http://www.shinh.org/p.rb?Central+binomial+coefficient but with different form test cases,the earlier one's trick won't work here. --tret

Ref:http://en.wikipedia.org/wiki/Central_binomial_coefficient

Options

exec is denied

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

Sample input:_

14
1
12
3
4
7
12
9
10
10
14
13
9
6
5

Sample output:

2
2704156
20
70
3432
2704156
48620
184756
184756
40116600
10400600
48620
924
252

Sample input:_

2
0
15

Sample output:

1
155117520

Ranking

Perl _

RankUserSizeTimeDateStatistics
1tails450.26752011/05/06 18:00:180B / 21B / 21B
2teebee460.22312011/04/29 08:51:140B / 24B / 21B

Python _

RankUserSizeTimeDateStatistics
1hallvabo680.06252011/05/06 00:08:320B / 38B / 29B
2Shreyans Doshi990.21212014/11/12 02:37:296B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1dico_leque740.32532011/04/24 20:04:470B / 34B / 33B
2kaki(dico_leque)710.04832013/03/25 06:46:560B / 29B / 38B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima600.11832011/04/26 08:38:450B / 27B / 29B

Io _

RankUserSizeTimeDateStatistics
1pooq900.32422011/04/24 08:49:310B / 65B / 20B

JavaScript _

RankUserSizeTimeDateStatistics
1nn580.02442011/05/03 21:32:430B / 31B / 27B

REXX _

RankUserSizeTimeDateStatistics
1pooq610.03412012/04/13 18:21:180B / 38B / 9B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee390.05072012/03/27 11:10:550B / 25B / 14B

Cyan _

RankUserSizeTimeDateStatistics
1pooq581.76062011/12/20 21:57:090B / 33B / 24B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*670.12522011/04/24 02:06:250B / 43B / 20B
2pooq700.01922011/04/23 23:33:490B / 45B / 13B

J _

RankUserSizeTimeDateStatistics
1I., S.230.07932011/05/06 18:39:200B / 8B / 15B
2pooq240.07852011/04/23 00:39:000B / 9B / 14B
3medialuna620.04682014/08/14 15:13:380B / ?B / ?B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer80.32362021/04/06 23:05:077B / 1B / 0B

C _

RankUserSizeTimeDateStatistics
1kou820.01202011/04/26 13:03:080B / 44B / 38B
2inaniwa820.00162011/04/26 15:49:520B / 44B / 38B
3Debanjan830.00152011/04/23 09:05:570B / ?B / ?B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1260.08492011/04/22 22:07:310B / 71B / 52B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1010.00162011/04/22 22:56:570B / 70B / 22B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*700.02002011/04/22 22:52:300B / 44B / 24B
2*yuko*650.02582011/12/03 01:18:470B / 39B / 23B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2230.00122011/04/23 17:32:020B / 180B / 14B
2*yuko*2130.02062011/06/06 02:34:490B / 172B / 14B

Maxima _

RankUserSizeTimeDateStatistics
1pooq480.26282011/04/23 20:16:130B / 26B / 22B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa660.85162011/04/22 22:34:110B / 42B / 23B
2inaniwa640.50542011/10/22 00:21:320B / 42B / 21B

REBOL _

RankUserSizeTimeDateStatistics
1pooq780.07092011/04/24 11:56:260B / 47B / 14B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee440.24242011/12/22 02:49:180B / 29B / 14B
2teebee(pooq)770.22662011/12/20 23:42:170B / 46B / 29B
3pooq800.44642011/12/20 23:02:530B / 44B / 34B

dc _

RankUserSizeTimeDateStatistics
1narb410.00442011/05/06 16:34:450B / 26B / 15B
2tails410.01552011/05/06 17:52:350B / 26B / 15B

R _

RankUserSizeTimeDateStatistics
1pooq760.59962011/04/24 20:01:440B / 42B / 30B
2pooq750.40772012/10/25 07:16:100B / 43B / 28B

QCL _

RankUserSizeTimeDateStatistics
1pooq900.08542011/04/23 23:21:140B / 58B / 21B

GolfScript _

RankUserSizeTimeDateStatistics
1narb270.11232011/05/05 17:52:290B / ?B / ?B
2nooodl280.10892011/04/24 17:58:320B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1whio90.11862017/08/05 04:04:382B / 4B / 3B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik150.02332014/05/18 06:13:360B / 6B / 9B

Groovy _

RankUserSizeTimeDateStatistics
1nn764.27812011/05/03 21:21:530B / 48B / 24B

Logo _

RankUserSizeTimeDateStatistics
1teebee390.04042011/04/24 09:48:390B / 25B / 11B

Language Ranking_

RankLangUserSizeScore
1JellyErik the Outgolfer810000
2gs2whio98888
3BurlesqueHendrik155333
4JI., S.233478
5GolfScriptnarb272962
6Logoteebee392051
7PARI/GPteebee392051
8dcnarb411951
9Asymptoteteebee441818
10Perltails451777
11Maximapooq481666
12JavaScriptnn581379
13Cyanpooq581379
14Common LISPkozima601333
15REXXpooq611311
16Octaveinaniwa641250
17Fortran*yuko*651230
18BASIC*yuko*671194
19Pythonhallvabo681176
20Schemekaki(dico_leque)711126
21Rpooq751066
22Groovynn761052
23REBOLpooq781025
24Ckou82975
25QCLpooq90888
26Iopooq90888
27Pascal*yuko*101792
28OCamlm.ukai126634
29COBOL*yuko*213375

return to the top page