Telephone Keypad Letter Mapping

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:_

2122122213133133314144144415155155516166166617177177717777161661666191991999199991

Sample output:

abcdefghijklmnopqrstuvwxyz

Sample input:_

44133155515551666101416661555133313317771777710144410144166617133101999166618810133166151666199910181441444177771016661661331

Sample output:

hello golfers i hope you enjoy this one

Ranking

Python _

RankUserSizeTimeDateStatistics
1hallvabo980.01112010/03/16 05:21:590B / 75B / 15B
2tobiesque1820.00622010/03/09 06:40:060B / 92B / 82B

PHP _

RankUserSizeTimeDateStatistics
1o-cn(embed)920.01512010/03/15 11:08:230B / 61B / 23B
2TAKO/j0nKI1510.01702010/03/11 21:15:000B / 107B / 34B

JavaScript _

RankUserSizeTimeDateStatistics
1ktt1030.00032010/03/13 18:31:040B / 79B / 15B

Erlang _

RankUserSizeTimeDateStatistics
1Chris Hagan6320.38122010/03/09 19:46:4932B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
151b1010.00092010/03/20 13:21:380B / 56B / 45B
2TAKO/j0nKI1610.00102010/03/09 16:19:541B / 115B / 35B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai (embed)1190.09502010/09/07 14:11:140B / 89B / 21B

Haskell _

RankUserSizeTimeDateStatistics
1rst761020.00142010/03/16 19:46:450B / 61B / 27B
2TAKO/j0nKI1430.00142010/03/11 21:37:480B / 103B / 27B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1490.29352010/03/20 21:50:410B / 114B / 26B

C# _

RankUserSizeTimeDateStatistics
1TAKO/j0nKI1840.11912010/03/10 01:01:190B / 136B / 35B
2Hex1910.11862010/03/15 02:32:080B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1nn900.00122010/03/20 16:07:380B / 56B / 32B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(embed)(bin)940.25112010/03/20 17:28:596B / 76B / 3B
2yshl(embed)1010.25072010/03/20 17:18:340B / 83B / 6B
3yshl(bin)1290.25062010/03/20 14:34:5769B / 41B / 17B
4yshl2410.25112010/03/20 14:34:370B / 179B / 17B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo38(milieu,embed)650.13452011/06/06 15:29:410B / 44B / 13B
2milieu700.13132010/10/17 02:28:160B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1nn680.09572010/03/20 16:12:002B / 45B / 19B
2nn650.14522010/10/16 01:07:142B / 42B / 19B

Groovy _

RankUserSizeTimeDateStatistics
1nn973.38882010/03/20 15:51:590B / 57B / 40B

Language Ranking_

RankLangUserSizeScore
1Vimnn6510000
2FlogScriptzzo38(milieu,embed)6510000
3AWKnn907222
4PHPo-cn(embed)927065
5Postscriptyshl(embed)(bin)946914
6Groovynn976701
7Pythonhallvabo986632
8C51b1016435
9Haskellrst761026372
10JavaScriptktt1036310
11OCamlm.ukai (embed)1195462
12Javahallvabo1494362
13C#TAKO/j0nKI1843532
14ErlangChris Hagan6321028

return top