Reversing numbers

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

where input is with binary - output the decimal reversed equivalent and vice versa for decimal input :)

The output of this problem had an issue but it was fixed -- shinh.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

00000001
10
20
30
500
00000010
00010000
00011000

Sample output:

1
00000001
00000010
00000011
00000101
2
61
42

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid340.00562011/07/29 04:48:050B / 18B / 14B
2twobit340.00562011/08/08 08:02:400B / 18B / 14B
3yvl340.01422011/08/13 10:18:330B / 18B / 14B
4clock340.00512013/11/12 21:23:410B / 18B / 14B
5kaki(embed)350.02242011/06/07 17:09:160B / 19B / 13B
6bk1e(embed)500.01512011/06/07 14:40:050B / 37B / 6B
7Klemmbrett580.01092016/02/03 04:40:190B / ?B / ?B
8fulaftrbrnr1530.00492011/08/13 03:58:197B / ?B / ?B

Ruby2 _

RankUserSizeTimeDateStatistics
1Klemmbrett580.07992016/02/03 04:40:380B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tails340.05622011/06/11 17:17:094B / 16B / 10B
2Agano530.00042011/06/08 04:06:260B / 36B / 17B
3Hem540.05872011/08/02 12:41:550B / 27B / 23B
4%20550.01052015/10/06 05:24:010B / 26B / 25B
5mauke610.01622011/06/10 03:40:178B / 43B / 2B

Python _

RankUserSizeTimeDateStatistics
1leonid440.02792011/07/29 04:44:080B / ?B / ?B
2twobit440.02352011/07/29 05:15:460B / 24B / 20B
3clock440.03382013/11/12 21:20:320B / 24B / 20B
4hallvabo470.02932011/07/29 01:12:110B / 27B / 20B
5poochin1580.02402011/07/29 00:40:300B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1teebee450.38492011/06/24 06:38:030B / 38B / 0B
2lvogel450.03832011/07/02 20:44:490B / ?B / ?B
3ideo450.02042013/10/03 12:07:090B / ?B / ?B
4Shmiddty450.83562013/11/02 06:00:430B / 38B / 0B

Common LISP _

RankUserSizeTimeDateStatistics
1ttmh430.05532014/09/07 15:45:260B / 27B / 11B

Arc _

RankUserSizeTimeDateStatistics
1clock480.91932012/10/18 06:20:220B / 35B / 9B

Io _

RankUserSizeTimeDateStatistics
1pooq520.26132011/06/14 19:00:210B / 43B / 2B
2clock520.07852012/08/27 03:09:130B / 43B / 2B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea550.01392015/10/06 20:10:080B / 33B / 19B
2teebee570.01632013/11/02 02:32:220B / 43B / 7B
3clock570.01952013/11/12 21:03:580B / 43B / 7B
4hakusui(embed)610.01992012/01/15 00:02:180B / 50B / 11B
5Shmiddty (embed)610.01362013/11/02 01:08:590B / 50B / 11B
6Shmiddty610.14482013/11/02 05:33:030B / 45B / 16B
7_nderscore610.01092013/11/02 06:21:450B / 40B / 21B
8Klemmbrett610.01382016/02/03 04:43:160B / ?B / ?B
9null1320.00032011/07/05 13:58:387B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1pooq540.01382011/12/11 11:07:180B / 43B / 4B
2twobit540.01572012/06/23 07:05:320B / 43B / 4B
3Hendrik540.02172012/06/24 06:24:270B / 43B / 4B
4clock540.00022012/08/09 13:24:260B / 43B / 4B

Tcl _

RankUserSizeTimeDateStatistics
1pooq520.01792011/12/11 11:10:270B / 42B / 2B
2clock520.01452012/08/23 14:27:400B / 42B / 2B
3teebee520.01452012/08/27 04:40:190B / 42B / 2B
4toomas520.01972015/10/06 04:26:530B / 42B / 2B

Xtal _

RankUserSizeTimeDateStatistics
1teebee490.02372011/12/30 11:32:590B / 28B / 14B
2clock490.01682013/09/28 11:28:430B / 28B / 14B
3pooq500.03122011/06/13 23:42:280B / 39B / 4B

Kite _

RankUserSizeTimeDateStatistics
1clock540.01132012/07/08 10:54:120B / 43B / 4B
2teebee540.01642012/07/08 20:59:440B / 43B / 4B

Icon _

RankUserSizeTimeDateStatistics
1teebee660.01872012/04/08 23:58:310B / 47B / 15B
2clock660.01872012/04/09 00:10:070B / 47B / 15B
3pooq820.01542012/04/03 20:02:450B / 66B / 13B

REXX _

RankUserSizeTimeDateStatistics
1clock670.00022012/11/17 02:50:160B / 60B / 6B
2teebee670.00022012/11/17 04:27:410B / 60B / 6B
3pooq810.01542012/05/14 18:50:170B / 62B / 8B

PARI/GP _

RankUserSizeTimeDateStatistics
1clock540.01932012/07/28 13:59:480B / 32B / 21B
2teebee550.01232012/05/09 04:18:020B / 29B / 20B
3pooq640.01862012/03/25 21:43:370B / 51B / 12B

Cyan _

RankUserSizeTimeDateStatistics
1pooq571.75052011/12/11 12:00:320B / 48B / 9B
2clock570.40992012/07/29 16:28:430B / 48B / 9B
3teebee570.45082013/03/03 20:43:280B / 48B / 9B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock510.02442013/01/07 10:16:430B / 34B / 13B

Prolog _

RankUserSizeTimeDateStatistics
1teebee600.02722012/03/05 09:55:350B / 46B / 8B
2pooq660.02932011/06/20 23:28:580B / 52B / 14B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*480.00032011/06/10 01:31:380B / 38B / 3B
2teebee480.08032011/06/13 06:11:150B / 38B / 3B
3clock480.01462013/03/26 01:09:230B / 38B / 3B

Erlang _

RankUserSizeTimeDateStatistics
1pooq890.11652012/08/23 22:49:570B / 62B / 17B

J _

RankUserSizeTimeDateStatistics
1I., S.(embed,bin)390.03462011/06/09 06:29:191B / 16B / 16B
2I., S.(embed)400.04352011/06/09 06:20:140B / 20B / 16B
3I., S.580.04442011/06/08 12:53:020B / 20B / 38B

K _

RankUserSizeTimeDateStatistics
1teebee350.01062012/07/01 21:53:140B / 15B / 15B
2twobit380.01092012/06/23 09:07:434B / 15B / 18B
3pooq500.01292012/03/20 14:28:430B / 39B / 4B

C _

RankUserSizeTimeDateStatistics
1inaniwa610.01672011/06/07 09:06:550B / 38B / 23B
2nn610.01482011/06/08 01:07:240B / 38B / 23B
3Agano640.00042011/06/08 03:55:310B / 40B / 24B
4inaniwa(after fixing the problem)640.01632011/06/08 07:59:230B / 40B / 24B
5*yuko*640.00042011/06/10 01:31:570B / 40B / 24B
6koi660.00032011/06/08 01:12:190B / 51B / 15B

Go _

RankUserSizeTimeDateStatistics
1uru780.00042011/06/06 22:21:400B / 61B / 8B

Rust _

RankUserSizeTimeDateStatistics
1pooq650.01692013/04/29 17:47:220B / 49B / 8B

Haskell _

RankUserSizeTimeDateStatistics
1henkma650.01472012/01/24 08:35:340B / ?B / ?B
2int-e650.01052015/01/14 04:43:140B / 55B / 10B
3monqy1770.00192011/07/29 16:45:590B / 98B / 59B

Java _

RankUserSizeTimeDateStatistics
1hakusui(embed)790.07022011/12/29 23:12:520B / 49B / 29B
2teebee790.10962011/12/30 00:00:300B / 51B / 27B
3dc840.06482016/02/03 23:06:010B / 62B / 21B
4Klemmbrett850.05652016/02/03 04:27:560B / ?B / ?B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*640.01682011/06/10 01:32:200B / 51B / 5B
2teebee640.01122013/11/02 05:35:330B / 51B / 5B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*450.01252011/10/05 20:40:320B / 23B / 22B

C# _

RankUserSizeTimeDateStatistics
1teebee980.05152012/11/07 07:49:560B / 61B / 27B
2clock980.04632012/11/08 16:33:080B / 64B / 24B
3Hendrik980.06412013/08/15 16:43:530B / 61B / 27B

COBOL _

RankUserSizeTimeDateStatistics
1teebee870.02022011/06/13 06:15:100B / 72B / 7B
2*yuko*870.00032011/06/13 06:45:440B / 72B / 7B

Maxima _

RankUserSizeTimeDateStatistics
1pooq430.17502011/06/12 12:39:480B / 20B / 19B

REBOL _

RankUserSizeTimeDateStatistics
1pooq580.03952011/10/10 08:10:130B / 47B / 4B
2clock580.03622012/06/21 01:26:440B / 47B / 4B
3teebee580.02602012/07/18 07:45:010B / 47B / 4B

Asymptote _

RankUserSizeTimeDateStatistics
1pooq530.11122011/12/19 19:19:360B / 41B / 5B
2teebee530.17492011/12/19 19:54:510B / 41B / 5B

Euphoria _

RankUserSizeTimeDateStatistics
1clock540.00022014/01/28 22:40:382B / 31B / 21B
2teebee540.01392014/01/29 08:50:472B / 31B / 21B

AWK _

RankUserSizeTimeDateStatistics
1llhuii450.01062014/09/08 02:20:130B / 19B / 26B
2teebee540.01052014/09/08 06:08:410B / 32B / 19B
3clock550.01052012/11/15 18:08:380B / 38B / 17B
4pooq620.01472011/12/11 11:45:340B / 49B / 13B

sed _

RankUserSizeTimeDateStatistics
1clock520.01342011/12/05 02:53:220B / 37B / 13B
2lvogel560.03132011/07/02 20:45:480B / ?B / ?B

Bash _

RankUserSizeTimeDateStatistics
1llhuii510.00292015/07/13 06:03:330B / ?B / ?B

Zsh _

RankUserSizeTimeDateStatistics
1llhuii510.01232015/07/13 06:03:400B / ?B / ?B

Fish _

RankUserSizeTimeDateStatistics
1llhuii510.01452015/07/13 06:03:540B / ?B / ?B

wake _

RankUserSizeTimeDateStatistics
1clock510.01442011/12/05 02:56:490B / 32B / 18B

bc _

RankUserSizeTimeDateStatistics
1teebee490.01092013/11/01 05:22:020B / 38B / 3B

dc _

RankUserSizeTimeDateStatistics
1lvogel460.05582011/07/02 20:55:020B / ?B / ?B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii450.01082014/09/08 02:26:440B / 19B / 26B

m4 _

RankUserSizeTimeDateStatistics
1teebee450.00032011/06/08 05:12:250B / 38B / 0B
2lvogel450.11132011/07/02 20:44:030B / ?B / ?B
3zzo38(embed,THIS PROBLEM IS BROKEN THE OUTPUT HAS ONE LINE MISSING)490.03862011/06/07 10:15:246B / 37B / 0B
4zzo38(embed,This problem is no longer broken it is fixed now)520.04062011/06/08 05:07:067B / 38B / 0B

R _

RankUserSizeTimeDateStatistics
1pooq520.29742011/08/22 11:34:060B / 41B / 4B
2clock520.13862012/10/11 13:20:150B / 41B / 4B
3teebee520.19682012/10/12 08:16:390B / 41B / 4B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)490.02572015/10/04 18:03:339B / 11B / 21B
2saru930.00072011/10/04 23:56:240B / 0B / 93B

Befunge _

RankUserSizeTimeDateStatistics
1clock570.00022012/08/25 08:46:477B / 40B / 9B

GolfScript _

RankUserSizeTimeDateStatistics
1nn310.04402011/07/22 00:14:070B / 12B / 19B
2nooodl470.04492011/08/08 23:37:394B / ?B / ?B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo38300.05572011/06/08 05:59:210B / 15B / 14B

Burlesque _

RankUserSizeTimeDateStatistics
1teebee260.01152013/11/02 06:21:340B / 21B / 3B
2clock270.01062015/01/14 03:15:110B / 17B / 8B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*420.05722011/06/10 03:01:3127B / 4B / 9B

DOS _

RankUserSizeTimeDateStatistics
1*yuko*482.55722012/01/05 19:43:3126B / 13B / 8B

Vim _

RankUserSizeTimeDateStatistics
1clock280.02592011/12/03 23:14:462B / 23B / 1B
2nn290.02652011/12/03 22:05:174B / 20B / 3B

Groovy _

RankUserSizeTimeDateStatistics
1hakusui451.14792011/12/29 23:47:230B / 28B / 16B

Scala _

RankUserSizeTimeDateStatistics
1pooq486.72402011/06/12 14:36:330B / 28B / 20B
2zakki489.57032011/06/13 21:03:480B / 28B / 20B
3Hendrik483.04622013/08/15 18:52:210B / 28B / 20B

Language Ranking_

RankLangUserSizeScore
1Burlesqueteebee2610000
2Vimclock289285
3FlogScriptzzo38308666
4GolfScriptnn318387
5Perltails347647
6Rubyleonid347647
7Kteebee357428
8JI., S.(embed,bin)396666
9z80*yuko*426190
10Maximapooq436046
11Common LISPttmh436046
12Pythonleonid445909
13m4teebee455777
14PHPteebee455777
15Fortran*yuko*455777
16Groovyhakusui455777
17AWKllhuii455777
18xgawkllhuii455777
19dclvogel465652
20BASIC*yuko*485416
21Scalapooq485416
22DOS*yuko*485416
23Arcclock485416
24Xtalteebee495306
25bcteebee495306
26Brainfuckmitchs (cheat)495306
27wakeclock515098
28Smalltalkclock515098
29Bashllhuii515098
30Zshllhuii515098
31Fishllhuii515098
32Iopooq525000
33Rpooq525000
34sedclock525000
35Tclpooq525000
36Asymptotepooq534905
37Luapooq544814
38Kiteclock544814
39PARI/GPclock544814
40Euphoriaclock544814
41JavaScriptFizzyTea554727
42Cyanpooq574561
43Befungeclock574561
44REBOLpooq584482
45Ruby2Klemmbrett584482
46Prologteebee604333
47Cinaniwa614262
48Pascal*yuko*644062
49Haskellhenkma654000
50Rustpooq654000
51Iconteebee663939
52REXXclock673880
53Gouru783333
54Javahakusui(embed)793291
55COBOLteebee872988
56Erlangpooq892921
57C#teebee982653

return top