Euclidian Norm

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

http://en.wikipedia.org/wiki/Euclidean_distance#n_dimensions

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

1
1 1
1 1 1
1 1 1 1
1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1

Sample output:

1
1.41421
1.73205
2
2.23607
2.44949
2.64575
2.82843
3

Sample input:_

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9

Sample output:

1
2.23607
3.74166
5.47723
7.4162
9.53939
11.83216
14.28286
16.88194

Sample input:_

6 8 2 9 4 8 2 5 7
7 5 9 3 2 5 3
5 8 7 8 6 2
1 2 5 6 4 2 5 4 7
9 3 9 9 2 6 2 4
5 8 9 4 7 7
5 6 8 9 4
1 3 2 7 8 9
6 7 1
1 9 8 9 6 4 6 8
5 9 5 3 2 5 8
8 4 2 3 3 4 8 1
5 8 8 3 1 2 9 9 5
7 7 6 8 9 6
5 3 6 5 8
4 6 4 2 3 6 6 5 3
1 8 4 3 9 4
7 3 5 6 3
8 1 3 9
9 5 4 5 9 4 7 7 4
8 8
3 1 3 5 4 2 6
8 1 1 4 2
9 8 3 6 3
8 7 2 2 7 6 2
5 2 8 7 1 6 8 5
2 1 2 2 6
1 9 1 2 7 9 3 7 4
9 4 9 9
9 5 6 3 6 1 7 2 3
7 2 1 5 6
4 9 6
7 5 6 3 4 5 8
2 8 8 2 4 8
9 9 8 8 1 4
8 8 2
1 7 8 8 4 7 7
3 6 6 4 5 3 1
1 8 1 5 8 3 1
1 9 1 6 6 6 8 1
8 8 6 9 6 7 9 9
8 3 8 6 7 8 9 6 2

Sample output:

18.52026
14.21267
15.55635
13.2665
17.66352
16.8523
14.89966
14.42221
9.27362
19.46792
15.26434
13.52775
18.81489
17.74824
12.60952
13.67479
13.67479
11.31371
12.4499
18.92089
11.31371
10
9.27362
14.10674
14.49138
16.37071
7
17.05872
16.09348
15.81139
10.72381
11.53256
14.96663
14.69694
17.52142
11.48913
17.08801
11.48913
12.84523
16
22.18107
20.17424

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid530.04262015/01/30 04:33:210B / 24B / 26B
2Histocrat540.03672015/01/30 02:23:320B / 19B / 32B
3clock590.03892015/02/19 00:30:310B / 27B / 28B
4BioFALSE990.03702014/10/15 05:34:310B / 53B / 37B

Perl _

RankUserSizeTimeDateStatistics
1tails490.03492016/05/31 17:36:490B / 24B / 22B
2teebee500.03542014/10/14 10:17:120B / 24B / 22B
3llhuii520.04102016/05/31 23:04:230B / 22B / 27B
4Hem560.06362016/05/31 10:00:400B / 28B / 26B
5BioFALSE600.03752014/10/14 17:48:330B / 29B / 31B

Python _

RankUserSizeTimeDateStatistics
1hallvabo720.10822014/10/15 06:38:470B / 43B / 26B
2rolf720.08792014/10/18 01:48:070B / 43B / 25B
3leonid720.08532014/10/18 10:04:400B / 41B / 29B
4twobit720.13282014/10/30 19:34:320B / 43B / 25B
5llhuii760.09252015/07/16 03:41:380B / ?B / ?B
6cvbge870.13172015/02/06 00:09:050B / 52B / 31B
7undergroundmonorail970.08902014/10/16 22:40:340B / 63B / 24B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii740.14862015/07/18 01:07:200B / 36B / 36B
2Stephan W.1130.15172015/07/15 21:59:580B / 66B / 37B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1090.11802014/12/02 14:49:290B / 65B / 42B

Io _

RankUserSizeTimeDateStatistics
1teebee1050.21002014/12/10 09:00:070B / 81B / 18B
2clock1050.21072015/02/21 01:48:490B / 81B / 18B
3pooq1060.22862014/12/09 13:06:170B / 80B / 21B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee750.04682014/12/23 09:30:320B / 50B / 22B
2FizzyTea750.07162015/04/15 00:20:270B / 50B / 22B
3900.04902014/12/07 08:08:280B / 58B / 31B

Lua _

RankUserSizeTimeDateStatistics
1tyos1080.05112014/12/18 15:18:280B / ?B / ?B

Tcl _

RankUserSizeTimeDateStatistics
1toomas1040.05002015/10/13 04:46:150B / 60B / 33B

J _

RankUserSizeTimeDateStatistics
1pooq480.06852014/12/07 22:49:160B / 15B / 32B

K _

RankUserSizeTimeDateStatistics
1clock290.03002015/01/15 00:51:550B / 7B / 21B
2teebee290.02952015/01/15 01:52:010B / 11B / 18B

C _

RankUserSizeTimeDateStatistics
1llhuii810.03192015/07/18 00:59:560B / ?B / ?B
2twobit960.03212014/10/30 23:50:070B / 51B / 45B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1160.04092014/11/03 20:54:480B / 72B / 38B
2oerjan1340.03772014/10/19 12:30:120B / 86B / 47B
3hebiyan3920.04652014/12/08 13:35:260B / 232B / 59B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii810.03192015/07/18 01:06:220B / 44B / 37B

Java _

RankUserSizeTimeDateStatistics
1teebee1850.22502014/10/30 07:46:260B / 107B / 73B
2empitax2200.27202014/10/30 21:24:060B / 136B / 76B
3twobit2220.25362014/10/31 06:16:290B / 142B / 72B
4fatO2390.24602014/10/30 03:49:030B / 152B / 79B

Octave _

RankUserSizeTimeDateStatistics
1fizzie660.59912014/10/16 01:40:090B / 35B / 30B

AWK _

RankUserSizeTimeDateStatistics
1teebee500.03202014/11/01 07:25:280B / 20B / 30B
2llhuii510.03282014/11/01 01:36:430B / ?B / ?B

jq _

RankUserSizeTimeDateStatistics
1clock570.03552015/02/10 00:59:340B / 30B / 25B
2teebee570.03472015/02/10 06:10:260B / 30B / 25B

Bash _

RankUserSizeTimeDateStatistics
1llhuii570.01642015/07/18 01:08:580B / 24B / 32B

Zsh _

RankUserSizeTimeDateStatistics
1llhuii570.01792015/07/18 01:09:320B / 24B / 32B

Fish _

RankUserSizeTimeDateStatistics
1llhuii570.04932015/07/18 01:09:250B / 24B / 32B

xgawk _

RankUserSizeTimeDateStatistics
1teebee500.03292014/11/01 07:26:050B / 20B / 30B
2llhuii510.03282015/07/16 02:33:500B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1clock220.05642015/01/14 19:14:330B / 9B / 13B
2teebee220.05332015/01/15 05:05:050B / 9B / 13B
3Hendrik220.05062015/04/30 00:42:100B / 9B / 13B
4AndoDaan440.05642014/10/14 07:04:110B / 29B / 15B

Language Ranking_

RankLangUserSizeScore
1Burlesqueclock2210000
2Kclock297586
3Jpooq484583
4Perltails494489
5AWKteebee504400
6xgawkteebee504400
7Rubyleonid534150
8jqclock573859
9Bashllhuii573859
10Fishllhuii573859
11Zshllhuii573859
12Octavefizzie663333
13Pythonhallvabo723055
14Python3llhuii742972
15JavaScriptteebee752933
16Cllhuii812716
17ObjCllhuii812716
18Tcltoomas1042115
19Ioteebee1052095
20Luatyos1082037
21Schemekaki1092018
22Haskellhenkma1161896
23Javateebee1851189

return top