Hypotenuse length

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 the length of the hypotenuse of a right triangle given the two other sides. Print with two digits after the decimal.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

27.906 31.294
21.898 30.237 
1.167 17.1 
8.707 19.954 
28.984 22.179 
23.653 30.205 
23.319 25.606 
31.718 5.459 
13.776 31.073 
21.99 3.933 
10.533 2.673 
10.584 14.933 
10.837 20.451 
6.345 15.49 
31.232 1.019 
6.026 18.563 
30.327 1.844 
30.242 13.432 
24.781 9.737 
7.893 7.886 
22.569 23.171 
7.234 3.095 
1.46 23.081 
25.645 8.397 
3.25 27.413 
20.352 17.901 
2.651 28.6 
30.265 29.33 
18.832 22.979 
13.285 13.069 
23.373 31.59 
1.17 2.295 
3.706 15.524 
8.597 6.786 
10.457 2.045 
19.22 9.753 
23.161 20.872 
6.56 5.602 
18.081 26.635 
1.317 21.392 
29.566 3.802 
7.107 31.725 
12.456 20.303 
1.83 11.012 
30.71 27.64 
12.998 18.122 
26.504 16.148 
21.525 19.983 
16.113 5.865 
14.267 18.147 
5.0 12.0
8.0 15.0
7.0 24.0
9.0 40.0
119.0 120.0
48 55
20 21.0
3.0 4.0

Sample output:

41.93
37.33
17.14
21.77
36.50
38.36
34.63
32.18
33.99
22.34
10.87
18.30
23.14
16.74
31.25
19.52
30.38
33.09
26.63
11.16
32.35
7.87
23.13
26.98
27.60
27.10
28.72
42.15
29.71
18.64
39.30
2.58
15.96
10.95
10.66
21.55
31.18
8.63
32.19
21.43
29.81
32.51
23.82
11.16
41.32
22.30
31.04
29.37
17.15
23.08
13.00
17.00
25.00
41.00
169.00
73.00
29.00
5.00

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1olf370.01132016/05/15 11:14:470B / 18B / 16B
2mitchs370.01132016/05/15 11:27:380B / 22B / 12B
3teebee370.01122016/05/16 15:41:040B / 22B / 12B
4ludo370.01132016/05/17 12:18:440B / 18B / 16B
5xsot460.01182016/05/15 19:35:530B / 22B / 22B
6Histocrat460.01202016/05/17 02:43:070B / 17B / 26B

Ruby2 _

RankUserSizeTimeDateStatistics
1ludo380.06202016/05/17 12:35:030B / 19B / 16B
2mitchs390.07332016/05/15 12:26:370B / 21B / 16B
3xsot390.06382016/05/15 19:02:380B / 21B / 16B
4rotary-o490.07012016/05/15 00:37:280B / 25B / 22B
5kimiyuki540.06662016/05/15 19:33:430B / 25B / 27B

Perl _

RankUserSizeTimeDateStatistics
1%20380.02112016/05/14 13:12:420B / 15B / 21B
2tails380.05632016/05/14 23:12:290B / 15B / 21B
3teebee380.01832016/05/15 14:15:470B / 17B / 19B
4mitchs380.01622016/05/15 14:27:240B / 16B / 20B
5kimiyuki380.01122016/05/15 19:09:140B / 17B / 19B
6llhuii380.01752016/05/16 13:57:440B / ?B / ?B
7yuki460.01112016/05/15 17:25:440B / 24B / 19B
8rsFalse530.01762016/10/09 06:47:460B / 33B / 19B

Python _

RankUserSizeTimeDateStatistics
1mitchs610.03102016/05/15 12:17:570B / 38B / 22B
2xsot610.04532016/05/15 12:31:120B / 38B / 22B
3xnor610.03732016/05/16 19:33:120B / ?B / ?B
4potato900.02792016/08/17 06:04:260B / ?B / ?B
5Vim Lover1200.03132016/08/17 05:59:540B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1xsot590.37792016/05/15 12:33:440B / 35B / 23B
2mitchs590.08872016/05/15 14:50:500B / 35B / 23B
3Έρικ Κωνσταντόπουλος1200.05242016/05/19 21:26:390B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1teebee620.55022016/05/16 06:21:449B / 29B / 24B

Common LISP _

RankUserSizeTimeDateStatistics
1teebee520.06082016/05/17 00:53:160B / 28B / 21B
2rolf1520.03922016/05/15 03:56:330B / 82B / 46B
3teebee490.06742016/05/17 23:56:190B / 31B / 16B

Arc _

RankUserSizeTimeDateStatistics
1teebee460.91022016/05/15 21:37:420B / 28B / 16B

Clojure _

RankUserSizeTimeDateStatistics
1teebee480.96072016/05/15 19:57:150B / 31B / 15B

Io _

RankUserSizeTimeDateStatistics
1teebee850.08872016/05/17 01:10:300B / 70B / 9B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee700.01852016/05/15 20:05:120B / 43B / 26B
2Jakzo700.01852016/05/16 01:42:380B / 43B / 26B
3_700.05982016/05/16 07:56:070B / 43B / 26B
4FizzyTea700.03132016/05/16 07:56:350B / 43B / 26B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik650.01112016/05/15 05:18:060B / 36B / 27B
2teebee650.01722016/05/15 14:56:220B / 36B / 27B

Tcl _

RankUserSizeTimeDateStatistics
1toomas640.13352016/05/14 22:35:140B / 40B / 15B

Xtal _

RankUserSizeTimeDateStatistics
1teebee910.01492016/05/16 17:36:250B / 47B / 42B

REXX _

RankUserSizeTimeDateStatistics
1teebee660.01092016/05/16 17:14:050B / 41B / 20B

Prolog _

RankUserSizeTimeDateStatistics
1teebee480.04162016/05/16 16:55:580B / 26B / 21B

BASIC _

RankUserSizeTimeDateStatistics
1teebee460.02712016/05/15 21:23:300B / 27B / 18B

J _

RankUserSizeTimeDateStatistics
1I., S.320.01672016/05/16 12:28:510B / 16B / 16B
2pooq330.06812016/05/15 21:36:180B / 12B / 20B
3I., S.(pooq)320.06302016/05/19 05:48:120B / 12B / 19B
4I., S.(alt)320.03312016/05/19 05:51:080B / 11B / 20B

K _

RankUserSizeTimeDateStatistics
1teebee360.00572016/05/15 18:00:320B / 11B / 24B

C _

RankUserSizeTimeDateStatistics
1mitchs730.01082016/05/14 17:34:320B / 41B / 31B
2tails730.01372016/05/14 23:19:070B / 39B / 33B
3xsot730.01422016/05/15 10:17:340B / 41B / 31B
4teebee730.01072016/05/15 14:14:440B / 39B / 33B
5lpha730.01072016/05/16 14:45:390B / 39B / 33B
6ludo730.01072016/05/17 12:02:330B / 39B / 33B
7smkt760.01092016/05/14 13:04:170B / 42B / 33B
8%20760.01342016/05/14 13:09:570B / 40B / 35B
9kimiyuki760.01172016/05/15 18:28:510B / 40B / 35B

Haskell _

RankUserSizeTimeDateStatistics
1henkma930.02042016/05/15 14:31:160B / 63B / 29B
2yuki970.01612016/05/16 10:29:580B / 67B / 26B
3nagibator20051010.01982016/05/15 18:46:320B / ?B / ?B

ObjC _

RankUserSizeTimeDateStatistics
1mitchs730.01082016/05/15 14:50:330B / 41B / 31B
2teebee730.01332016/05/15 19:11:460B / 39B / 33B
3ludo730.01072016/05/17 12:02:520B / 39B / 33B
4%20760.01102016/05/14 13:10:030B / 40B / 35B

Java _

RankUserSizeTimeDateStatistics
1teebee1410.14332016/05/15 19:07:030B / 95B / 41B

Pascal _

RankUserSizeTimeDateStatistics
1teebee750.00442016/05/16 16:51:070B / 53B / 18B

Maxima _

RankUserSizeTimeDateStatistics
1teebee550.93502016/05/16 15:58:090B / 28B / 23B
2teebee540.75802016/05/17 22:49:490B / 29B / 21B

Octave _

RankUserSizeTimeDateStatistics
1teebee470.37392016/05/16 23:34:470B / 22B / 25B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee600.09982016/05/16 16:19:230B / 38B / 21B

AWK _

RankUserSizeTimeDateStatistics
1mitchs310.01422016/05/15 02:50:000B / 14B / 17B
2Hendrik310.01082016/05/15 06:16:580B / 14B / 17B
3teebee310.01072016/05/15 14:17:480B / 14B / 17B
4olf320.01422016/05/14 23:51:080B / 17B / 15B
5rolf320.01422016/05/15 02:24:330B / 17B / 15B
6lpha330.01082016/05/16 15:06:140B / 14B / 19B
7%20340.01082016/05/15 02:32:330B / 17B / 17B

jq _

RankUserSizeTimeDateStatistics
1teebee680.01252016/05/16 16:43:360B / 29B / 37B

Bash _

RankUserSizeTimeDateStatistics
1tails270.01092016/05/14 23:36:490B / 19B / 7B

bc _

RankUserSizeTimeDateStatistics
1teebee560.01692016/05/15 17:38:230B / 32B / 23B

dc _

RankUserSizeTimeDateStatistics
1tails320.00742016/05/14 23:34:460B / 21B / 11B

xgawk _

RankUserSizeTimeDateStatistics
1Hendrik310.02152016/05/15 06:25:290B / 14B / 17B
2teebee310.01092016/05/15 14:19:130B / 14B / 17B
3mitchs310.01112016/05/15 14:50:420B / 14B / 17B
4olf320.05112016/05/14 23:51:230B / 17B / 15B
5%20340.01222016/05/15 02:32:490B / 17B / 17B

R _

RankUserSizeTimeDateStatistics
1teebee580.13912016/05/16 16:06:460B / 38B / 20B

GolfScript _

RankUserSizeTimeDateStatistics
1tails480.06762016/05/15 00:20:030B / 16B / 31B

goruby _

RankUserSizeTimeDateStatistics
1mitchs270.04982016/05/15 13:30:400B / 11B / 16B
2mitchs (alt)290.08362016/05/15 13:24:070B / 12B / 17B
3mitchs ()290.05112016/05/15 13:31:540B / 12B / 16B
4mitchs (ludo)220.04562016/05/17 13:03:150B / 10B / 12B

Groovy _

RankUserSizeTimeDateStatistics
1teebee690.87442016/05/15 19:02:540B / 48B / 21B

Scala _

RankUserSizeTimeDateStatistics
1teebee763.54842016/05/15 18:30:380B / 55B / 18B

Language Ranking_

RankLangUserSizeScore
1gorubymitchs (ludo)2210000
2Bashtails278148
3AWKmitchs317096
4xgawkHendrik317096
5dctails326875
6JI., S.326875
7Kteebee366111
8Rubyolf375945
9Perl%20385789
10Ruby2ludo385789
11BASICteebee464782
12Arcteebee464782
13Octaveteebee474680
14GolfScripttails484583
15Clojureteebee484583
16Prologteebee484583
17Common LISPteebee494489
18Maximateebee544074
19bcteebee563928
20Rteebee583793
21Python3xsot593728
22Asymptoteteebee603666
23Pythonmitchs613606
24PHPteebee623548
25Tcltoomas643437
26LuaHendrik653384
27REXXteebee663333
28jqteebee683235
29Groovyteebee693188
30JavaScriptteebee703142
31Cmitchs733013
32ObjCmitchs733013
33Pascalteebee752933
34Scalateebee762894
35Ioteebee852588
36Xtalteebee912417
37Haskellhenkma932365
38Javateebee1411560

return top