The same birthday

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

The problem is to compute the probability that in a room of n people, at least two have the same birthday.

Options

exec is denied

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

Sample input:_

*NOTHING*

Sample output:

n=2, p=0.00273973
n=3, p=0.00820417
n=4, p=0.01635591
n=5, p=0.02713557
n=6, p=0.04046248
n=7, p=0.05623570
n=8, p=0.07433529
n=9, p=0.09462383
n=10, p=0.11694818
n=11, p=0.14114138
n=12, p=0.16702479
n=13, p=0.19441028
n=14, p=0.22310251
n=15, p=0.25290132
n=16, p=0.28360401
n=17, p=0.31500767
n=18, p=0.34691142
n=19, p=0.37911853
n=20, p=0.41143838
n=21, p=0.44368834
n=22, p=0.47569531
n=23, p=0.50729723
n=24, p=0.53834426
n=25, p=0.56869970
n=26, p=0.59824082
n=27, p=0.62685928
n=28, p=0.65446147
n=29, p=0.68096854
n=30, p=0.70631624
n=31, p=0.73045463
n=32, p=0.75334753
n=33, p=0.77497185
n=34, p=0.79531686
n=35, p=0.81438324
n=36, p=0.83218211
n=37, p=0.84873401
n=38, p=0.86406782
n=39, p=0.87821966
n=40, p=0.89123181
n=41, p=0.90315161
n=42, p=0.91403047
n=43, p=0.92392286
n=44, p=0.93288537
n=45, p=0.94097590
n=46, p=0.94825284
n=47, p=0.95477440
n=48, p=0.96059797
n=49, p=0.96577961
n=50, p=0.97037358
n=51, p=0.97443199
n=52, p=0.97800451
n=53, p=0.98113811
n=54, p=0.98387696
n=55, p=0.98626229
n=56, p=0.98833235
n=57, p=0.99012246
n=58, p=0.99166498
n=59, p=0.99298945
n=60, p=0.99412266
n=61, p=0.99508880
n=62, p=0.99590957
n=63, p=0.99660439
n=64, p=0.99719048
n=65, p=0.99768311
n=66, p=0.99809570
n=67, p=0.99844004
n=68, p=0.99872639
n=69, p=0.99896367
n=70, p=0.99915958
n=71, p=0.99932075
n=72, p=0.99945288
n=73, p=0.99956081
n=74, p=0.99964864
n=75, p=0.99971988
n=76, p=0.99977744
n=77, p=0.99982378
n=78, p=0.99986095
n=79, p=0.99989067
n=80, p=0.99991433
n=81, p=0.99993311
n=82, p=0.99994795
n=83, p=0.99995965
n=84, p=0.99996882
n=85, p=0.99997600
n=86, p=0.99998159
n=87, p=0.99998593
n=88, p=0.99998928
n=89, p=0.99999186
n=90, p=0.99999385
n=91, p=0.99999537
n=92, p=0.99999652
n=93, p=0.99999740
n=94, p=0.99999806
n=95, p=0.99999856
n=96, p=0.99999893
n=97, p=0.99999922
n=98, p=0.99999942
n=99, p=0.99999958
n=100, p=0.99999969

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1teebee560.01812012/11/18 21:57:470B / 26B / 29B
2clock560.01222012/11/19 18:37:070B / 23B / 32B

Perl _

RankUserSizeTimeDateStatistics
1teebee510.01052012/11/08 05:41:280B / 17B / 32B
2clock510.01572012/11/19 16:01:080B / 23B / 25B
3Hem520.00012012/11/16 00:09:300B / 20B / 30B
4MG560.00012012/11/10 03:57:060B / 27B / 27B
5mauke580.01542012/11/20 08:30:221B / 27B / 27B
6clock500.01582012/11/20 11:53:020B / 20B / 27B

Python _

RankUserSizeTimeDateStatistics
1hallvabo600.02612012/11/09 11:32:330B / 30B / 29B
2teebee600.03422012/11/09 11:33:280B / 30B / 29B
3clock600.02112012/11/09 11:36:560B / 30B / 29B
4jamesaxl1340.09412012/11/10 08:13:073B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1clock590.03132012/11/19 17:31:5613B / 19B / 27B
2teebee610.03042012/11/18 18:47:2013B / 21B / 27B

Arc _

RankUserSizeTimeDateStatistics
1clock711.02892012/11/20 06:20:130B / 28B / 32B

Io _

RankUserSizeTimeDateStatistics
1clock680.08292012/11/13 15:00:340B / 37B / 30B
2teebee680.07952012/11/18 19:33:250B / 37B / 30B
3pooq700.09352012/11/12 01:39:320B / 38B / 31B

JavaScript _

RankUserSizeTimeDateStatistics
1nn660.01982012/11/08 00:20:290B / 34B / 31B
2teebee660.01962012/11/08 05:37:130B / 34B / 31B
3clock660.01042012/11/08 08:05:040B / 34B / 31B
40mg700.01952012/11/07 19:02:560B / 36B / 33B

Lua _

RankUserSizeTimeDateStatistics
1clock720.00012012/11/14 02:29:260B / 41B / 25B
2teebee720.00012012/11/14 10:26:250B / 41B / 25B

Tcl _

RankUserSizeTimeDateStatistics
1clock1000.01752012/11/20 05:47:250B / 53B / 32B

Icon _

RankUserSizeTimeDateStatistics
1clock930.01472012/11/19 16:12:430B / 52B / 36B
2teebee940.00012012/11/18 19:01:100B / 51B / 37B

REXX _

RankUserSizeTimeDateStatistics
1clock810.00012012/11/14 08:59:080B / 51B / 19B
2teebee810.01122012/11/14 09:10:470B / 51B / 19B

Prolog _

RankUserSizeTimeDateStatistics
1pooq780.12602012/11/20 07:52:540B / 39B / 32B

BASIC _

RankUserSizeTimeDateStatistics
1clock620.01042012/11/19 16:18:580B / 33B / 24B
2teebee640.01222012/11/19 04:22:220B / 35B / 25B
3pooq660.03672012/11/19 00:32:120B / 35B / 25B

J _

RankUserSizeTimeDateStatistics
1I., S.550.04772012/11/07 19:42:460B / 16B / 38B

K _

RankUserSizeTimeDateStatistics
1teebee510.00972012/11/19 07:44:490B / 19B / 31B

C _

RankUserSizeTimeDateStatistics
1nu710.01322012/11/08 01:42:480B / 38B / 31B
2nn710.01132012/11/09 00:00:120B / 36B / 33B
3eiyuu710.00012012/11/18 18:45:330B / 36B / 33B
4clock710.01312012/11/19 17:31:040B / 36B / 33B
5inaniwa740.00012012/11/06 14:09:290B / 37B / 35B
6ush740.01082012/11/06 15:21:060B / 40B / 32B
70mg810.00012012/11/07 18:53:280B / 44B / 35B

Go _

RankUserSizeTimeDateStatistics
1uru1140.02442012/11/17 21:21:100B / 68B / 40B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1030.02702012/11/11 00:22:510B / 67B / 33B
2henkma1030.02052012/11/17 05:47:440B / 67B / 33B
3tttaki1540.01332012/11/10 22:52:360B / 99B / 43B

Java _

RankUserSizeTimeDateStatistics
1clock920.12512012/11/13 15:40:150B / 51B / 38B
2teebee940.13552012/11/13 06:29:380B / 54B / 37B

Pascal _

RankUserSizeTimeDateStatistics
1uru960.00012012/11/17 19:33:500B / 58B / 33B
2teebee960.00012012/11/18 10:27:150B / 58B / 33B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*750.01962012/11/17 10:45:350B / 42B / 30B

C# _

RankUserSizeTimeDateStatistics
1teebee1150.06232012/11/13 06:15:030B / 70B / 40B
2clock1150.05932012/11/13 14:33:100B / 71B / 39B

Maxima _

RankUserSizeTimeDateStatistics
1clock590.17952012/11/11 17:40:080B / 30B / 27B
2teebee590.19842012/11/13 06:50:190B / 30B / 27B

AWK _

RankUserSizeTimeDateStatistics
1clock570.01402012/11/13 15:37:320B / 29B / 27B
2nn580.01332012/11/09 00:07:520B / 29B / 28B
3teebee610.01062012/11/08 05:36:080B / 32B / 28B

Zsh _

RankUserSizeTimeDateStatistics
1eban690.02562012/11/06 14:17:220B / 33B / 27B

bc _

RankUserSizeTimeDateStatistics
1teebee750.00982012/11/16 09:58:550B / 39B / 34B

dc _

RankUserSizeTimeDateStatistics
1*yuko*530.01282012/11/17 10:18:310B / 34B / 18B

R _

RankUserSizeTimeDateStatistics
1clock660.22252012/11/20 05:01:560B / 35B / 28B
2teebee680.26202012/11/19 04:11:200B / 40B / 25B
3pooq700.23362012/11/19 00:22:460B / 39B / 28B
4clock(teebee)650.52442012/11/20 11:47:230B / 37B / 24B

Groovy _

RankUserSizeTimeDateStatistics
1clock550.95372012/11/08 09:01:300B / 30B / 23B
2nn571.07042012/11/08 08:27:270B / 31B / 25B
3teebee581.12302012/11/08 05:56:140B / 31B / 26B

Logo _

RankUserSizeTimeDateStatistics
1teebee750.01312012/11/09 11:59:540B / 43B / 18B

Language Ranking_

RankLangUserSizeScore
1Perlclock5010000
2Kteebee519803
3dc*yuko*539433
4JI., S.559090
5Groovyclock559090
6Rubyteebee568928
7AWKclock578771
8Maximaclock598474
9PHPclock598474
10Pythonhallvabo608333
11BASICclock628064
12Rclock(teebee)657692
13JavaScriptnn667575
14Ioclock687352
15Zsheban697246
16Cnu717042
17Arcclock717042
18Luaclock726944
19Logoteebee756666
20bcteebee756666
21Fortran*yuko*756666
22Prologpooq786410
23REXXclock816172
24Javaclock925434
25Iconclock935376
26Pascaluru965208
27Tclclock1005000
28Haskellnotogawa1034854
29Gouru1144385
30C#teebee1154347

return top