Square root
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Calculate floating-point (IEEE 754) square-roots ofgiven numbers (decimal,hexadecimal,nan,inf),
and show result as printf "%.9f" format.
Options
exec is denied
no deadline, the server will not save your submission
Sample input:_
2
3
4
5
6
7
8
9
10
Sample output:
1.414213562
1.732050808
2.000000000
2.236067977
2.449489743
2.645751311
2.828427125
3.000000000
3.162277660
Sample input:_
0
NaN
3.14159265
-1
18
0x123
0x123.fed
127020
Sample output:
0.000000000
nan
1.772453850
nan
4.242640687
17.058722109
17.087871761
356.398653196
Sample input:_
2
3
+inf
-inf
12345
-0
+0
-0.00
81
Sample output:
1.414213562
1.732050808
inf
nan
111.108055514
-0.000000000
0.000000000
-0.000000000
9.000000000
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 84 | 0.0650 | 2012/02/27 02:02:55 | 0B / ?B / ?B |
2 | o___o | 85 | 0.1400 | 2008/03/03 18:55:09 | 0B / ?B / ?B |
3 | murky-satyr | 85 | 0.0559 | 2008/08/13 02:07:10 | 0B / 43B / 40B |
4 | eban | 86 | 0.2385 | 2007/03/04 02:04:20 | 0B / 38B / 46B |
5 | shinh | 87 | 0.5529 | 2007/02/12 14:18:53 | ?B / ?B / ?B |
6 | usa | 88 | 0.2203 | 2007/02/10 05:42:12 | ?B / ?B / ?B |
7 | tabasa | 396 | 0.0839 | 2007/09/29 23:48:49 | 25B / 205B / 135B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 59 | 0.0477 | 2012/02/27 17:12:24 | 0B / 28B / 30B |
2 | leonid | 59 | 0.0472 | 2012/02/27 20:19:33 | 0B / 28B / 30B |
3 | nonstrict | 62 | 0.6556 | 2007/02/21 08:24:32 | 0B / ?B / ?B |
4 | sugarfree | 68 | 0.1350 | 2007/02/28 01:31:00 | 0B / ?B / ?B |
5 | dankogai | 69 | 0.4643 | 2007/02/10 04:40:06 | ?B / ?B / ?B |
6 | skyvan | 78 | 0.0843 | 2008/02/27 05:37:00 | 0B / ?B / ?B |
7 | ott | 80 | 0.0373 | 2008/05/24 07:13:56 | 0B / 42B / 36B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | twobit | 94 | 0.0920 | 2014/01/29 10:54:16 | 0B / 57B / 34B |
2 | hallvabo | 100 | 0.1066 | 2014/01/29 10:44:38 | 0B / 45B / 55B |
3 | mskzzz | 103 | 0.3405 | 2007/04/15 21:05:11 | 0B / 71B / 20B |
4 | starmie | 107 | 0.0943 | 2015/02/11 17:09:55 | 0B / 74B / 29B |
5 | mft | 121 | 0.3698 | 2007/02/14 02:49:09 | ?B / ?B / ?B |
6 | | 391 | 0.1040 | 2014/12/12 14:05:09 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mypetlion | 89 | 0.1187 | 2019/12/17 09:06:29 | 0B / 54B / 31B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | o-cn | 134 | 0.0179 | 2009/12/02 20:16:33 | 12B / 63B / 59B |
2 | tarhashi | 341 | 0.3884 | 2008/10/03 10:20:45 | 1B / ?B / ?B |
3 | test | 356 | 0.4137 | 2008/10/03 10:15:56 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ma(this_problem_sucks) | 332 | 0.2002 | 2007/03/03 12:13:12 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kozima | 213 | 0.3717 | 2007/10/02 14:39:08 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | youz | 140 | 12.3242 | 2009/10/26 23:20:56 | 0B / 80B / 55B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 100 | 0.0945 | 2008/05/14 12:02:03 | 0B / 59B / 41B |
2 | murky-satyr | 100 | 0.0892 | 2008/08/13 02:14:34 | 0B / 54B / 46B |
3 | ETHproductions | 119 | 0.0529 | 2017/03/30 01:51:23 | 0B / 73B / 46B |
4 | Dashiva | 124 | 0.1406 | 2007/04/20 13:24:07 | 0B / 67B / 57B |
5 | Tomac | 209 | 0.0064 | 2011/09/27 15:26:12 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | planque | 57 | 0.1074 | 2007/06/05 20:41:52 | 0B / 38B / 17B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | murky-satyr | 178 | 0.5602 | 2008/05/12 22:46:23 | 0B / 105B / 69B |
2 | sumim | 445 | 1.8511 | 2007/02/10 00:07:20 | ?B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mskzzzz | 217 | 0.3704 | 2007/06/12 01:52:30 | 0B / 127B / 85B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 51b | 136 | 0.0386 | 2008/05/21 19:56:20 | 0B / 92B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | poop | 245 | 0.0488 | 2007/09/15 17:33:33 | 0B / 145B / 79B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Hydrazer | 327 | 1.2225 | 2021/06/16 07:07:26 | 0B / 254B / 49B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | I., S. | 119 | 0.1500 | 2010/11/11 07:21:37 | 0B / 37B / 82B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | shinh | 64 | 0.0567 | 2009/09/04 06:29:04 | 0B / 36B / 27B |
2 | 51b | 64 | 0.0637 | 2009/09/05 12:52:44 | 0B / 36B / 27B |
3 | inaniwa | 64 | 0.0101 | 2009/12/27 09:47:37 | 0B / 36B / 27B |
4 | hallvabo | 64 | 0.0020 | 2010/08/14 07:52:01 | 0B / 38B / 25B |
5 | Reputeless | 64 | 0.0021 | 2011/02/04 09:03:39 | 0B / 36B / 27B |
6 | csanders | 66 | 0.0012 | 2010/11/17 04:37:00 | 0B / 37B / 28B |
7 | kurimura | 67 | 1.1260 | 2007/02/13 17:22:47 | ?B / ?B / ?B |
8 | ozy4dm | 67 | 0.9940 | 2007/02/13 17:41:08 | ?B / ?B / ?B |
9 | abf | 77 | 0.0319 | 2013/05/21 09:13:54 | 0B / ?B / ?B |
10 | wiseler | 157 | 0.0537 | 2008/05/10 07:20:53 | 3B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Shax | 106 | 0.0355 | 2008/05/10 13:51:45 | 2B / ?B / ?B |
2 | brixp | 156 | 0.0629 | 2010/10/08 13:47:57 | 9B / ?B / ?B |
3 | wiseler | 166 | 0.0511 | 2008/05/10 07:22:33 | 3B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 51b | 91 | 0.1203 | 2009/09/05 12:56:38 | 0B / 58B / 29B |
2 | kurimura | 110 | 0.2021 | 2007/02/09 22:01:06 | ?B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | emoken | 397 | 0.0015 | 2009/12/22 04:45:00 | 0B / 234B / 150B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | m.ukai | 56 | 0.2642 | 2007/02/15 12:56:20 | 0B / 40B / 13B |
2 | jijixi | 56 | 0.2965 | 2007/02/17 02:11:59 | 0B / 40B / 13B |
3 | ksk | 56 | 0.2609 | 2007/02/17 09:19:37 | 0B / 40B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | henkma | 160 | 0.0465 | 2012/10/02 18:54:08 | 0B / 99B / 54B |
2 | rst76 | 171 | 0.0033 | 2010/05/06 19:54:18 | 0B / 103B / 60B |
3 | aljee | 209 | 0.1409 | 2007/02/12 22:58:04 | ?B / ?B / ?B |
4 | m | 222 | 0.1444 | 2007/02/11 10:05:25 | ?B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 214 | 0.2026 | 2021/05/17 02:45:20 | 0B / 133B / 74B |
2 | hakusui | 220 | 0.3012 | 2011/12/24 12:51:39 | 0B / 138B / 75B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | usa | 25 | 0.7177 | 2007/02/13 18:10:20 | ?B / ?B / ?B |
2 | eban | 25 | 0.2321 | 2007/02/13 18:38:45 | ?B / ?B / ?B |
3 | yamaya | 25 | 0.0704 | 2007/02/21 23:56:06 | 0B / ?B / ?B |
4 | tabasa | 25 | 0.0473 | 2008/02/19 02:11:18 | 0B / 14B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | usa | 250 | 0.1946 | 2007/02/09 23:57:43 | ?B / ?B / ?B |
2 | eban | 250 | 0.5586 | 2007/02/10 00:11:05 | ?B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | McBusLuck | 336 | 0.0433 | 2020/04/05 08:49:50 | 0B / 262B / 48B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | llhuii | 121 | 0.0329 | 2014/03/19 19:30:18 | 0B / 56B / 65B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ySas(embed) | 248 | 0.9237 | 2007/05/15 12:44:53 | 142B / 67B / 36B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | olf | 80 | 0.3387 | 2021/02/10 23:07:16 | 0B / 50B / 29B |
2 | NikNakk | 122 | 0.4214 | 2014/07/04 21:26:20 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs (cheat) | 285 | 0.1113 | 2015/10/04 16:47:17 | 33B / 170B / 80B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | AndoDaan | 626 | 0.0137 | 2014/08/04 21:06:07 | 0B / 292B / 192B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 48 | 0.1095 | 2010/10/10 10:55:17 | 2B / 30B / 15B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | murky-satyr | 78 | 0.3756 | 2008/08/13 02:09:32 | 0B / 34B / 42B |
2 | leonid | 78 | 0.1627 | 2012/02/27 01:57:39 | 0B / 33B / 43B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | murky-satyr | 132 | 3.5265 | 2009/12/31 23:09:49 | 0B / 80B / 49B |
2 | nn | 132 | 3.4277 | 2010/01/01 01:10:20 | 0B / 80B / 49B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 136 | 6.0914 | 2021/05/17 02:16:54 | 0B / 96B / 38B |
2 | murky-satyr | 178 | 9.8396 | 2012/06/18 12:56:58 | 0B / 124B / 49B |
3 | tarhashi | 212 | 10.4306 | 2012/06/05 12:06:33 | 0B / ?B / ?B |
4 | zakki | 249 | 21.2597 | 2011/06/01 00:06:18 | 0B / 177B / 67B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | AWK | usa | 25 | 10000 |
2 | Vim | nn | 48 | 5208 |
3 | OCaml | m.ukai | 56 | 4464 |
4 | Lua | planque | 57 | 4385 |
5 | Perl | teebee | 59 | 4237 |
6 | C | shinh | 64 | 3906 |
7 | goruby | murky-satyr | 78 | 3205 |
8 | R | olf | 80 | 3125 |
9 | Ruby | leonid | 84 | 2976 |
10 | Python3 | mypetlion | 89 | 2808 |
11 | D | 51b | 91 | 2747 |
12 | Python | twobit | 94 | 2659 |
13 | JavaScript | nn | 100 | 2500 |
14 | C++ | Shax | 106 | 2358 |
15 | J | I., S. | 119 | 2100 |
16 | xgawk | llhuii | 121 | 2066 |
17 | Groovy | murky-satyr | 132 | 1893 |
18 | PHP | o-cn | 134 | 1865 |
19 | Forth | 51b | 136 | 1838 |
20 | Scala | rotary-o | 136 | 1838 |
21 | Arc | youz | 140 | 1785 |
22 | Haskell | henkma | 160 | 1562 |
23 | Smalltalk | murky-satyr | 178 | 1404 |
24 | Common LISP | kozima | 213 | 1173 |
25 | Java | rotary-o | 214 | 1168 |
26 | Prolog | mskzzzz | 217 | 1152 |
27 | BASIC | poop | 245 | 1020 |
28 | Postscript | ySas(embed) | 248 | 1008 |
29 | sed | usa | 250 | 1000 |
30 | Brainfuck | mitchs (cheat) | 285 | 877 |
31 | Perl6 | Hydrazer | 327 | 764 |
32 | Scheme | ma(this_problem_sucks) | 332 | 753 |
33 | bc | McBusLuck | 336 | 744 |
34 | Go | emoken | 397 | 629 |
35 | Befunge | AndoDaan | 626 | 399 |
Referer
Note that, they may contain spoilers.
return to the top page