Circle radius

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

Two integer, A and B are given.
Request the radius of the circle that passes three point (-A,0), (0,B), and (A,0).
The answer is rounded off and made an integer.

Options

exec is denied

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

Sample input:_

1375 1229
2645 2810
1132 310
55 2913
2047 1232
982 1296
2379 1564
2575 2279
106 1062
1921 2716
86 916
581 510
1432 2985
2659 787
1469 314
2571 217
2803 1685
950 959
1976 2924
328 1838
1085 942
2017 1346
1835 2898
2818 2981
1386 2316
2495 2318
153 1502
2542 2599
428 2382
1518 2139
719 2857
1273 651
1627 1408
36 432
1152 596
2013 501
2904 2997
767 2040
118 1963
650 903
374 2509
1723 2405
2038 587
27 1291
1368 363
2408 1245
117 2059
2132 1315
2620 2547
2478 692
1972 2144
1642 11
2926 2605
1062 1444
1985 478
2679 2676
1188 1731
1654 2395
1708 1813
3 701
372 960
737 380
1158 1529
397 1743
2020 68
58 596
569 1130
2221 2080
2144 256
2074 1856
780 2840
1523 952
2596 2922
1766 2660
264 2583
639 258
1154 2347
1588 606
169 2148
719 2948
1452 2197
1651 2266
381 2903
2178 2677
1290 2800
250 1139
2532 217
841 2085
2636 857
684 417
1568 563
945 711
2535 2043
2794 608
570 1076
2851 2312
1969 2526
1106 1492
1477 2942
1606 1999

Sample output:

1384
2650
2222
1457
2317
1020
2591
2594
536
2037
462
586
1836
4885
3593
15339
3174
950
2130
948
1096
2184
2030
2822
1573
2502
759
2543
1229
1608
1519
1570
1644
218
1411
4295
2905
1164
985
685
1282
1820
3831
646
2759
2951
1033
2386
2621
4783
1979
122558
2946
1113
4361
2679
1273
1769
1711
351
552
905
1203
917
30037
301
708
2226
9106
2087
1527
1694
2614
1916
1305
920
1457
2384
1081
1562
1578
1734
1477
2225
1697
597
14880
1212
4482
769
2465
984
2594
6724
689
2914
2030
1156
1842
1645

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid360.00882011/01/30 14:57:540B / 16B / 17B
2uru360.00802011/01/30 22:02:290B / 16B / 17B
3yvl370.00902011/01/31 14:41:150B / 16B / 18B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89310.00192011/01/26 01:09:320B / ?B / ?B
2tails310.00172011/01/26 21:06:350B / 9B / 21B
3teebee310.00172011/02/02 08:28:040B / 9B / 21B

Python _

RankUserSizeTimeDateStatistics
1hallvabo580.02872011/01/26 05:28:580B / 37B / 20B
2recursive580.02632011/01/26 05:33:310B / 37B / 20B
3twobit580.02922011/01/26 05:38:450B / 37B / 20B
4leonid580.02832011/01/28 03:18:090B / 37B / 19B
5xulapp580.02622011/01/30 22:27:090B / 37B / 19B
6teebee580.02882011/02/02 09:45:380B / 37B / 20B

PHP _

RankUserSizeTimeDateStatistics
1xulapp570.04542011/02/06 21:54:305B / 25B / 27B
2jacobi824740.04022011/02/07 20:24:370B / ?B / ?B
3Endres1120.04802011/01/26 03:22:241B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1youz620.48552011/02/07 18:26:290B / 36B / 24B
2kozima620.09172011/02/08 08:54:450B / 36B / 24B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr482.62852011/02/08 00:28:030B / 25B / 21B
2youz481.98442011/02/08 01:18:440B / 25B / 21B
3pooq522.04852011/02/07 18:35:020B / 27B / 22B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr543.16422011/02/07 16:28:290B / 24B / 29B
2pooq611.94682011/01/28 20:53:230B / 29B / 31B
3teebee(murky-satyr)520.89842016/01/09 21:57:450B / 25B / 26B

Io _

RankUserSizeTimeDateStatistics
1pooq1030.25892011/02/08 01:06:060B / 69B / 27B
2clock(teebee)860.14772012/10/25 07:13:060B / 66B / 16B
3teebee870.20672011/06/27 03:53:200B / 66B / 17B
4pooq1020.18302011/02/08 18:40:290B / 68B / 27B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp520.00372011/01/30 22:26:370B / 28B / 23B
2nn520.01922011/01/30 22:31:050B / 28B / 23B
3murky-satyr520.00772011/02/07 16:34:520B / 28B / 23B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr630.03762011/02/08 00:37:560B / 37B / 23B
2pooq630.00592011/02/08 01:02:300B / 37B / 23B

Tcl _

RankUserSizeTimeDateStatistics
1pooq630.01802011/01/27 21:57:170B / 36B / 20B

Xtal _

RankUserSizeTimeDateStatistics
1pooq940.16792011/02/08 01:05:320B / 48B / 43B
2teebee(pooq)840.02442011/12/30 11:49:470B / 43B / 38B

REXX _

RankUserSizeTimeDateStatistics
1pooq360.01112012/04/15 16:24:580B / 22B / 8B

Prolog _

RankUserSizeTimeDateStatistics
1pooq700.22562011/01/26 17:19:410B / 36B / 33B
2teebee460.05802012/03/05 04:20:110B / 23B / 22B

BASIC _

RankUserSizeTimeDateStatistics
1teebee410.00702011/02/05 04:51:540B / 24B / 15B
2pooq410.07482011/02/08 01:03:510B / 24B / 15B
3*yuko*390.00212011/10/10 21:19:150B / 23B / 15B

J _

RankUserSizeTimeDateStatistics
1I., S.310.09752011/01/25 19:52:110B / 10B / 21B
2pooq330.08242011/02/05 04:11:170B / 9B / 24B

K _

RankUserSizeTimeDateStatistics
1teebee280.02382012/07/05 05:08:040B / 8B / 20B

C _

RankUserSizeTimeDateStatistics
1nai650.00072011/01/26 09:41:470B / 31B / 34B
2inaniwa650.00072011/01/26 10:14:340B / 31B / 34B
3leonid650.00072011/01/29 02:37:530B / 31B / 34B
4nn650.00072011/02/01 12:01:310B / 31B / 34B
5uru650.00072011/02/02 19:18:010B / 31B / 34B
6Reputeless650.01282011/02/07 11:20:290B / 31B / 34B
7_660.00082011/01/27 00:22:160B / 31B / 35B
8twobit660.00082011/01/27 00:22:400B / 31B / 35B
9kou660.00072011/02/01 10:51:240B / 32B / 34B
10chocobi690.00072011/01/25 23:21:460B / 34B / 35B
11fil810.00072011/01/29 23:57:250B / 41B / 40B
12teebee660.00082011/03/27 12:32:140B / 32B / 34B

OCaml _

RankUserSizeTimeDateStatistics
1ksk770.21372011/02/07 17:29:580B / 47B / 25B
2m.ukai790.04682011/02/03 14:35:030B / 49B / 23B

Haskell _

RankUserSizeTimeDateStatistics
1rst76670.00622011/02/01 12:22:090B / 45B / 20B
2notogawa670.00662011/02/01 18:29:310B / 45B / 20B
3koyama41670.00672011/02/02 00:24:030B / 44B / 21B
4konn670.02352011/02/07 22:04:030B / 44B / 21B
5_690.00692011/01/29 10:08:410B / 45B / 23B

Java _

RankUserSizeTimeDateStatistics
1teebee1400.23122011/02/02 09:02:250B / 92B / 42B
2hallvabo1430.29492011/01/26 05:39:120B / 91B / 46B
3teebee1380.11182012/01/04 23:54:370B / 90B / 42B

Pascal _

RankUserSizeTimeDateStatistics
1uru730.00102011/01/29 13:14:170B / 51B / 18B
2*yuko*780.00012011/01/26 22:59:040B / 55B / 16B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*470.00112011/01/26 22:48:530B / 28B / 18B
2*yuko*450.01822011/11/27 15:55:050B / 26B / 18B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2280.00342011/10/10 21:25:030B / 160B / 36B

Maxima _

RankUserSizeTimeDateStatistics
1pooq760.16342011/01/26 12:33:060B / 42B / 32B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa660.40692011/03/24 20:08:170B / 28B / 38B

REBOL _

RankUserSizeTimeDateStatistics
1pooq870.12862011/01/28 23:47:580B / 48B / 22B

Asymptote _

RankUserSizeTimeDateStatistics
1xulapp550.93732011/01/30 22:44:340B / 34B / 20B
2pooq650.94702011/01/28 22:25:220B / 33B / 31B
3teebee(xulapp)520.18612011/12/13 04:47:430B / 34B / 17B

AWK _

RankUserSizeTimeDateStatistics
1eban240.00102011/02/09 09:38:530B / 10B / 14B

jq _

RankUserSizeTimeDateStatistics
1eban590.01192014/12/15 18:51:150B / 20B / 37B

Bash _

RankUserSizeTimeDateStatistics
1eban480.00752011/02/09 09:50:270B / 27B / 15B

bc _

RankUserSizeTimeDateStatistics
1teebee480.01592011/06/27 03:40:070B / 26B / 21B

R _

RankUserSizeTimeDateStatistics
1pooq640.33332011/01/26 19:36:590B / 35B / 29B
2clock(pooq)610.17682012/10/25 07:07:280B / 36B / 25B
3pooq630.16852012/10/25 07:03:290B / 36B / 27B

GolfScript _

RankUserSizeTimeDateStatistics
1twobit170.36282011/01/26 22:57:220B / 3B / 14B
2leonid170.10112011/01/28 03:25:440B / 3B / 14B

gs2 _

RankUserSizeTimeDateStatistics
1whio100.09172017/07/20 01:16:413B / 4B / 3B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu120.31212011/02/17 04:59:250B / ?B / ?B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*1000.73372011/01/29 18:23:4860B / 23B / 9B
2*yuko*980.73042011/10/10 21:11:1658B / 23B / 8B

Vim _

RankUserSizeTimeDateStatistics
1nn360.11152011/02/06 13:13:302B / 15B / 18B
2clock(nn)340.05912011/12/18 23:28:212B / 12B / 19B

Groovy _

RankUserSizeTimeDateStatistics
1nn732.26742011/01/30 14:17:050B / 46B / 27B
2murky-satyr732.27462011/02/08 00:22:350B / 49B / 23B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr794.06332011/03/11 09:31:140B / 51B / 25B
2pooq953.68352011/02/10 00:00:120B / 54B / 39B

Logo _

RankUserSizeTimeDateStatistics
1teebee450.01682011/04/25 04:10:130B / 28B / 15B

Language Ranking_

RankLangUserSizeScore
1gs2whio1010000
2FlogScriptmilieu128333
3GolfScripttwobit175882
4AWKeban244166
5Kteebee283571
6JI., S.313225
7Perltybalt89313225
8Vimclock(nn)342941
9Rubyleonid362777
10REXXpooq362777
11BASIC*yuko*392564
12Logoteebee452222
13Fortran*yuko*452222
14Prologteebee462173
15Arcmurky-satyr482083
16Basheban482083
17bcteebee482083
18JavaScriptxulapp521923
19Asymptoteteebee(xulapp)521923
20Clojureteebee(murky-satyr)521923
21PHPxulapp571754
22Pythonhallvabo581724
23jqeban591694
24Rclock(pooq)611639
25Common LISPyouz621612
26Tclpooq631587
27Luamurky-satyr631587
28Cnai651538
29Octaveinaniwa661515
30Haskellrst76671492
31Pascaluru731369
32Groovynn731369
33Maximapooq761315
34OCamlksk771298
35Scalamurky-satyr791265
36Xtalteebee(pooq)841190
37Ioclock(teebee)861162
38REBOLpooq871149
39z80*yuko*981020
40Javateebee138724
41COBOL*yuko*228438

return top