IPv6 prefix representation

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

Translate common IPv6 address prefix representation (xxxx:xxx:xxx::) to "ip6.arpa." domain name (RFC3596 section 2.5).

Options

exec is denied

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

Sample input:_

2001:db8:dead:beef::

Sample output:

0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.f.e.e.b.d.a.e.d.8.b.d.0.1.0.0.2.ip6.arpa.

Sample input:_

1:12:123:1234:123:12:1::

Sample output:

0.0.0.0.1.0.0.0.2.1.0.0.3.2.1.0.4.3.2.1.3.2.1.0.2.1.0.0.1.0.0.0.ip6.arpa.

Sample input:_

fe80:50:bcc:0:3d02:c7::

Sample output:

0.0.0.0.0.0.0.0.7.c.0.0.2.0.d.3.0.0.0.0.c.c.b.0.0.5.0.0.0.8.e.f.ip6.arpa.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1yvl460.06802011/11/24 17:46:300B / 28B / 16B
2unak460.06022011/11/24 21:59:010B / 28B / 16B
3eban460.07362011/11/24 22:03:190B / 28B / 16B
4kaki460.07562011/11/27 04:58:200B / 28B / 16B
5clock470.06432011/11/26 09:09:220B / ?B / ?B
6bk1e590.26392011/11/27 11:38:500B / 39B / 19B

Perl _

RankUserSizeTimeDateStatistics
1teebee640.06212011/12/06 21:14:500B / 37B / 26B
2tails650.05122011/11/26 01:45:550B / 35B / 29B

Python _

RankUserSizeTimeDateStatistics
1hallvabo930.06362011/11/25 02:48:300B / 50B / 40B
2pv2b930.19602011/12/03 14:00:030B / 52B / 38B
3lifthrasiir960.06682011/12/05 12:14:230B / 56B / 37B
4twobit980.08962011/11/25 07:06:350B / 45B / 51B

PHP _

RankUserSizeTimeDateStatistics
1clock890.07582011/12/07 15:13:002B / 49B / 37B
2teebee850.08592011/12/08 15:47:394B / 46B / 35B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1270.15552011/11/30 15:31:280B / 84B / 38B
2kaki1260.22122013/03/25 06:10:070B / 82B / 40B

JavaScript _

RankUserSizeTimeDateStatistics
1clock1010.05632011/12/08 12:17:030B / 53B / 48B
2nn1050.06282011/12/07 00:34:470B / 53B / 52B
30mg1070.07372011/12/06 20:52:340B / 55B / 52B
40mg(clock,nn)970.06992011/12/08 15:52:140B / 50B / 47B

Lua _

RankUserSizeTimeDateStatistics
1twobit1310.04252011/11/27 06:48:450B / 65B / 62B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*1240.05352011/12/08 05:00:490B / 64B / 51B

J _

RankUserSizeTimeDateStatistics
1I., S.520.07962011/11/25 21:47:330B / 15B / 37B

C _

RankUserSizeTimeDateStatistics
1pooh1420.03782011/11/30 11:14:270B / 78B / 64B

Haskell _

RankUserSizeTimeDateStatistics
1rst761160.04442011/12/02 22:25:220B / 58B / 52B
2koyama411190.04902011/12/02 11:14:130B / 65B / 48B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1670.04202011/12/08 03:52:590B / 98B / 63B

sed _

RankUserSizeTimeDateStatistics
1clock1120.05772011/12/04 22:59:120B / ?B / ?B

Bash _

RankUserSizeTimeDateStatistics
1mute1350.04142011/11/24 15:34:090B / 61B / 56B

wake _

RankUserSizeTimeDateStatistics
1clock850.05192011/11/27 12:58:150B / 16B / 64B

GolfScript _

RankUserSizeTimeDateStatistics
1tails430.10212011/12/08 03:07:330B / 12B / 31B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*490.18802011/12/08 04:52:3124B / 12B / 9B
2hakusui550.17252011/12/04 10:30:3429B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1clock440.12622011/12/07 09:32:363B / 35B / 6B
2nn490.19982011/11/28 00:43:263B / 33B / 11B

Groovy _

RankUserSizeTimeDateStatistics
1nn903.86242011/12/08 09:16:110B / 50B / 39B
2hakusui933.79372011/12/08 06:58:220B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails4310000
2Vimclock449772
3Rubyyvl469347
4z80*yuko*498775
5JI., S.528269
6Perlteebee646718
7wakeclock855058
8PHPteebee855058
9Groovynn904777
10Pythonhallvabo934623
11JavaScript0mg(clock,nn)974432
12sedclock1123839
13Haskellrst761163706
14BASIC*yuko*1243467
15Schemekaki1263412
16Luatwobit1313282
17Bashmute1353185
18Cpooh1423028
19Pascal*yuko*1672574

return top