Telephone Keypad Letter Mapping Fixed

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/Telephone_keypad

On telephone keypads the numbers also refer to letters,

0 = none (in some telephones, "OPERATOR" or "OPER")
1 = none (in some older telephones, QZ)
2 = ABC
3 = DEF
4 = GHI
5 = JKL
6 = MNO
7 = P(Q)RS
8 = TUV
9 = WXY(Z)

Write an interpreter that takes a string of numbers and produces a string of the expected text using 1 as a delimiter and 0 as a space, for example 21 would = a, 221 = b, 6661 = o 99991 = z 21221222101441331555155516661 = abc hello

Options

exec is denied

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

Sample input:_

21221222101441331555155516661

Sample output:

abc hello

Sample input:_

2122122213133133314144144415155155516166166617177177717777181881888191991999199991

Sample output:

abcdefghijklmnopqrstuvwxyz

Sample input:_

44133155515551666101416661555133313317771777710144410144166617133101999166618810133166151666199910181441444177771016661661331

Sample output:

hello golfers i hope you enjoy this one

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid430.00192010/03/17 09:46:541B / 25B / 16B
2primo460.00212010/03/12 02:16:040B / 23B / 22B
3yvl460.01992010/03/14 17:17:250B / 24B / 20B
4murky-satyr510.05442010/03/10 02:24:350B / 23B / 25B
5mendo1099680.00192010/03/18 17:06:430B / ?B / ?B
6GreaseMonkey780.03742010/03/11 06:17:450B / 44B / 32B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89410.00142010/03/09 00:43:541B / ?B / ?B
2yibe420.05002010/03/12 20:57:080B / 23B / 17B
3prakash420.00142010/03/17 03:34:271B / 26B / 12B
4primo450.00172010/03/12 06:33:510B / 23B / 22B
5ySas460.00172010/03/12 21:09:510B / 24B / 19B
6Mithran570.00172010/03/09 21:45:040B / 37B / 15B
7dcutter870.00682010/03/18 21:17:420B / 44B / 41B
8unau900.00172010/03/10 10:17:450B / 54B / 35B
9TAKO/j0nKI1130.00152010/03/15 00:59:371B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo820.04872010/03/21 22:08:420B / 47B / 33B
2primo860.01632010/03/16 22:00:070B / 50B / 32B
3tobiesque870.01072010/03/16 10:37:201B / 49B / 35B
4recursive890.04692010/03/20 06:12:201B / 54B / 29B
5Defenestrator960.01192010/03/18 10:51:310B / 51B / 42B
6betaveros1020.00592010/03/11 23:30:090B / 78B / 16B
7betaveros(embed)1100.00682010/03/11 23:25:160B / 84B / 18B
8croyal1210.01022010/03/10 03:30:100B / ?B / ?B
9porges1230.00972010/03/13 21:20:011B / 68B / 43B
10GreaseMonkey1290.00702010/03/11 06:27:538B / 62B / 36B
11JJeep1660.01312010/03/13 08:43:382B / 74B / 82B

PHP _

RankUserSizeTimeDateStatistics
1primo680.01242010/03/12 20:13:051B / 44B / 23B
2o-cn710.04762010/03/19 03:01:2937B / 21B / 13B
3ideo1140.01242010/03/11 23:21:380B / 62B / 51B
4TAKO/j0nKI1510.01452010/03/11 21:00:250B / 107B / 34B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima(embed)1090.07092010/03/10 00:10:370B / 81B / 19B
2youz1200.10612010/03/16 00:10:331B / 71B / 44B

Arc _

RankUserSizeTimeDateStatistics
1youz673.91522010/03/16 13:52:041B / 42B / 22B
2murky-satyr943.35652010/03/11 05:19:150B / 54B / 31B

Clojure _

RankUserSizeTimeDateStatistics
1youz962.90882010/03/16 12:02:061B / 55B / 36B
2murky-satyr1013.07342010/03/22 00:21:320B / 55B / 42B
3murky-satyr922.96742010/03/23 06:49:201B / 52B / 37B

JavaScript _

RankUserSizeTimeDateStatistics
1nn870.00342010/03/17 07:49:360B / 51B / 35B
2murky-satyr880.00342010/03/17 06:54:440B / 46B / 41B
3xulapp950.00302010/03/08 06:01:200B / 61B / 34B
4mooz950.00322010/03/17 23:03:320B / 63B / 32B
5os0x950.02602010/03/21 22:56:340B / 56B / 38B
6ktt980.00412010/03/13 05:44:170B / 58B / 40B
70mg1030.00032010/03/16 19:55:300B / 79B / 15B
8smogami1130.00292010/03/17 20:25:590B / ?B / ?B
9TAKO/j0nKI1210.00192010/03/11 21:05:460B / 86B / 27B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*690.00152010/03/08 23:44:220B / 39B / 28B

Erlang _

RankUserSizeTimeDateStatistics
151b1530.38892010/03/13 18:30:440B / 73B / 75B
2Chris Hagan4730.38122010/03/09 19:53:1428B / ?B / ?B

J _

RankUserSizeTimeDateStatistics
1pooq480.38192010/03/11 23:59:532B / 16B / 29B

C _

RankUserSizeTimeDateStatistics
1not700.00092010/03/11 12:09:231B / 40B / 28B
2inaniwa720.00102010/03/09 21:49:260B / 41B / 31B
3nn720.00102010/03/10 15:30:470B / 41B / 31B
4msk730.00092010/03/20 08:04:040B / 45B / 28B
5nai740.00092010/03/20 02:59:561B / 37B / 36B
651b760.00832010/03/13 17:14:120B / 44B / 32B
7chocobi770.00092010/03/12 21:30:420B / 46B / 31B
8porges840.00092010/03/15 15:01:590B / ?B / ?B
9TAKO/j0nKI1610.00092010/03/09 16:19:191B / 115B / 35B
10not(inaniwa)690.00102010/03/22 11:42:430B / 39B / 30B

C++ _

RankUserSizeTimeDateStatistics
1nn900.00112010/03/10 21:19:100B / 53B / 35B

D _

RankUserSizeTimeDateStatistics
151b1020.00162010/03/13 17:45:250B / 69B / 30B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1230.11512010/09/07 14:05:150B / 77B / 42B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa730.00852010/03/10 00:15:440B / ?B / ?B
2rst76730.00392010/03/11 21:47:380B / 48B / 24B
3koyama41730.00382010/03/17 12:33:160B / 48B / 24B
4nobsun860.00232010/03/12 11:47:010B / 47B / 33B
5Lost_dog910.00242010/03/21 20:32:230B / 45B / 41B
6TAKO/j0nKI1430.00142010/03/11 21:37:380B / 103B / 27B
7porges1530.00242010/03/13 20:26:012B / 85B / 59B
8pi80271890.00252010/03/10 16:05:194B / 111B / 48B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1490.27892010/03/20 21:54:110B / 114B / 26B
2uru1510.28282010/03/21 22:36:530B / 112B / 29B
3darefilz1550.28372010/03/15 03:30:350B / 96B / 56B
4nattow1550.27952010/03/16 13:44:110B / 114B / 31B
5mulder_fbi2020.27782010/03/09 23:43:170B / 121B / 77B

Pascal _

RankUserSizeTimeDateStatistics
1uru1400.00032010/03/17 06:58:390B / 108B / 21B

C# _

RankUserSizeTimeDateStatistics
1darefilz1480.11632010/03/14 18:59:360B / 90B / 53B
2chocobi1490.12212010/03/14 13:31:220B / 94B / 49B
3porges1740.12602010/03/13 21:09:113B / 105B / 57B
4TAKO/j0nKI1840.11982010/03/10 01:01:480B / 136B / 35B
5Hex1910.11782010/03/12 04:28:560B / ?B / ?B
6test1710.23682010/07/09 13:33:460B / ?B / ?B

Asymptote _

RankUserSizeTimeDateStatistics
1chocobi1151.51642010/03/12 21:28:290B / 72B / 41B
2xulapp982.79382010/09/20 23:02:110B / 62B / 34B

AWK _

RankUserSizeTimeDateStatistics
1nn490.00102010/03/08 22:03:250B / 31B / 18B
2pgas490.00112010/03/11 22:31:110B / 28B / 21B

sed _

RankUserSizeTimeDateStatistics
1KirarinSnow1070.07632010/03/12 08:58:340B / 52B / 45B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)800.23892010/03/13 17:36:1145B / 23B / 11B
2yshl1410.23982010/03/13 17:35:520B / 104B / 13B

GolfScript _

RankUserSizeTimeDateStatistics
1leonid280.10912010/03/17 10:06:500B / 11B / 16B
2KirarinSnow320.10392010/03/09 05:31:030B / 12B / 20B
3nn330.12962010/03/18 01:38:440B / 10B / 23B
4leonid270.16562010/09/25 20:19:060B / 12B / 14B

gs2 _

RankUserSizeTimeDateStatistics
1whio210.24142017/03/25 06:41:5810B / 7B / 4B

z80 _

RankUserSizeTimeDateStatistics
1kodera250.08212010/03/09 10:52:5417B / 7B / 1B
2GreaseMonkey290.06462010/03/11 12:31:5414B / 13B / 1B

Vim _

RankUserSizeTimeDateStatistics
1nn550.09542010/03/14 02:07:472B / 36B / 16B
2nn520.14302010/10/16 01:08:162B / 33B / 16B

goruby _

RankUserSizeTimeDateStatistics
1leonid390.09392010/03/17 10:48:311B / 21B / 17B
2murky-satyr480.28852010/03/10 02:34:540B / 21B / 25B

Groovy _

RankUserSizeTimeDateStatistics
1nn684.87392010/03/12 18:37:240B / 45B / 22B
2murky-satyr804.26262010/03/10 02:10:150B / 48B / 32B
3croyal2323.52702010/03/17 06:18:030B / ?B / ?B
4murky-satyr633.53242010/03/23 05:33:360B / 36B / 25B

Language Ranking_

RankLangUserSizeScore
1gs2whio2110000
2z80kodera258400
3GolfScriptleonid277777
4gorubyleonid395384
5Perltybalt89415121
6Rubyleonid434883
7Jpooq484375
8AWKnn494285
9Vimnn524038
10Groovymurky-satyr633333
11Arcyouz673134
12PHPprimo683088
13BASIC*yuko*693043
14Cnot(inaniwa)693043
15Haskellnotogawa732876
16Postscriptyshl(bin)802625
17Pythonhallvabo822560
18JavaScriptnn872413
19C++nn902333
20Clojuremurky-satyr922282
21Asymptotexulapp982142
22D51b1022058
23sedKirarinSnow1071962
24Common LISPkozima(embed)1091926
25OCamlm.ukai1231707
26Pascaluru1401500
27C#darefilz1481418
28Javahallvabo1491409
29Erlang51b1531372

return top