Telephone Keypad Letter Mapping
Submit
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
Rank | User | Size | Time | Date | Statistics |
---|
1 | ktt | 103 | 0.0003 | 2010/03/13 18:31:04 | 0B / 79B / 15B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 51b | 101 | 0.0009 | 2010/03/20 13:21:38 | 0B / 56B / 45B |
2 | TAKO/j0nKI | 161 | 0.0010 | 2010/03/09 16:19:54 | 1B / 115B / 35B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rst76 | 102 | 0.0014 | 2010/03/16 19:46:45 | 0B / 61B / 27B |
2 | TAKO/j0nKI | 143 | 0.0014 | 2010/03/11 21:37:48 | 0B / 103B / 27B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | TAKO/j0nKI | 184 | 0.1191 | 2010/03/10 01:01:19 | 0B / 136B / 35B |
2 | Hex | 191 | 0.1186 | 2010/03/15 02:32:08 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 90 | 0.0012 | 2010/03/20 16:07:38 | 0B / 56B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | whio | 54 | 0.2365 | 2017/03/25 04:47:47 | 3B / 42B / 1B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 68 | 0.0957 | 2010/03/20 16:12:00 | 2B / 45B / 19B |
2 | nn | 65 | 0.1452 | 2010/10/16 01:07:14 | 2B / 42B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 97 | 3.3888 | 2010/03/20 15:51:59 | 0B / 57B / 40B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | whio | 54 | 10000 |
2 | Vim | nn | 65 | 8307 |
3 | FlogScript | zzo38(milieu,embed) | 65 | 8307 |
4 | AWK | nn | 90 | 6000 |
5 | PHP | o-cn(embed) | 92 | 5869 |
6 | Postscript | yshl(embed)(bin) | 94 | 5744 |
7 | Groovy | nn | 97 | 5567 |
8 | Python | hallvabo | 98 | 5510 |
9 | C | 51b | 101 | 5346 |
10 | Haskell | rst76 | 102 | 5294 |
11 | JavaScript | ktt | 103 | 5242 |
12 | OCaml | m.ukai (embed) | 119 | 4537 |
13 | Java | hallvabo | 149 | 3624 |
14 | C# | TAKO/j0nKI | 184 | 2934 |
15 | Erlang | Chris Hagan | 632 | 854 |
return to the top page