IPv6 Compress

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

Print compressed IPv6 address.

Also see http://en.wikipedia.org/wiki/IPv6_address

Options

exec is denied

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

Sample input:_

2001:0db8:0020:0003:1000:0100:0020:0003

Sample output:

2001:db8:20:3:1000:100:20:3

Sample input:_

1230:5670:0000:0000:0123:0000:0000:00ab

Sample output:

1230:5670::123:0:0:ab

Sample input:_

0000:0000:0000:0000:0000:0000:0000:0001

Sample output:

::1

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1murky-satyr450.00172010/04/19 21:14:460B / 16B / 26B
2shinh460.00172010/04/14 16:01:360B / 17B / 26B
3primo460.00172010/04/19 21:06:300B / 18B / 23B
4yibe460.00182010/04/20 00:53:100B / 19B / 22B
5eban320.00752010/04/20 15:49:560B / 21B / 9B

Perl _

RankUserSizeTimeDateStatistics
1primo360.04152010/04/19 21:07:010B / 14B / 20B
2murky-satyr360.00162010/04/19 21:24:350B / 15B / 19B
3yibe360.00172010/04/20 00:48:070B / 15B / 19B
4ySas370.00162010/04/14 17:08:320B / 14B / 21B
5dcutter370.00162010/04/20 01:57:470B / 13B / 22B
6yibe350.00162010/04/20 19:53:500B / 14B / 19B

Python _

RankUserSizeTimeDateStatistics
1xulapp650.06082010/04/16 08:17:280B / 49B / 12B
2Defenestrator660.05742010/04/13 10:45:350B / 49B / 13B
3hallvabo750.08082010/04/06 20:00:310B / 45B / 30B
4JJeep1090.07462010/04/07 17:23:530B / 60B / 44B

PHP _

RankUserSizeTimeDateStatistics
1zzo38380.10232010/04/06 04:37:110B / ?B / ?B
2primo380.01772010/04/15 22:47:100B / 26B / 12B
3xulapp380.03622010/04/16 08:08:550B / 26B / 12B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr623.30342010/04/19 12:52:560B / 30B / 32B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp570.00272010/04/19 22:21:340B / 27B / 30B
2murky-satyr580.00272010/04/19 12:24:080B / 28B / 30B
3nn630.00272010/04/17 14:51:530B / 32B / 31B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr690.00132010/04/19 05:19:270B / 30B / 39B
2pooq840.02402010/04/18 22:51:170B / 49B / 35B

Tcl _

RankUserSizeTimeDateStatistics
1murky-satyr650.01002010/04/19 12:23:210B / 28B / 31B

Xtal _

RankUserSizeTimeDateStatistics
1pooq850.16962010/04/18 22:20:230B / 50B / 35B
2pooq810.07402010/08/22 22:09:130B / 49B / 32B

Prolog _

RankUserSizeTimeDateStatistics
1pooq990.07652010/04/18 22:29:510B / 59B / 38B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*850.00122010/04/12 20:25:030B / 52B / 27B

J _

RankUserSizeTimeDateStatistics
1pooq750.33012010/04/18 17:02:550B / 41B / 34B

C _

RankUserSizeTimeDateStatistics
1nai(embed)780.00032010/04/18 01:37:002B / 48B / 28B
2not780.00032010/04/18 02:31:242B / 48B / 28B
3not(embed)800.00032010/04/17 22:12:164B / 48B / 28B
451b(nn)640.00102010/04/25 11:44:120B / 40B / 24B
5nn710.00112010/04/25 10:48:580B / 44B / 27B
651b980.00332010/04/25 00:24:360B / 40B / 58B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai (embed)960.13212010/09/20 16:26:540B / 59B / 36B

Haskell _

RankUserSizeTimeDateStatistics
1rst76900.00172010/04/15 00:08:240B / 62B / 25B
2notogawa(embed)900.00182010/04/19 23:08:390B / 62B / 25B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1260.29022010/04/06 20:59:190B / 81B / 41B
2nattow1330.29312010/04/07 17:19:000B / 84B / 47B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1000.00032010/04/12 19:46:100B / 65B / 28B

Maxima _

RankUserSizeTimeDateStatistics
1pooq880.21932010/04/18 17:04:170B / 52B / 36B

AWK _

RankUserSizeTimeDateStatistics
1nn400.00112010/04/17 16:09:440B / 12B / 28B

sed _

RankUserSizeTimeDateStatistics
1nn320.00132010/04/17 15:51:080B / 8B / 23B
2emoken320.00132010/04/18 14:43:240B / 9B / 23B
3KirarinSnow420.04422010/04/06 09:32:040B / 9B / 32B
4msk570.15222010/04/08 01:48:520B / 17B / 37B

bc _

RankUserSizeTimeDateStatistics
1Carlos Gutierrez970.04342010/04/09 00:15:030B / ?B / ?B
2teebee870.05142012/02/21 08:03:510B / 56B / 30B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(embed)(bin)720.23852010/04/25 01:06:5710B / 46B / 16B
2yshl(embed)790.23752010/04/25 01:05:440B / 53B / 22B

Vim _

RankUserSizeTimeDateStatistics
1nn340.06332010/04/17 15:15:520B / 10B / 23B
2pla350.06772010/04/07 01:12:440B / 8B / 24B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr370.08362010/04/19 21:15:430B / 12B / 23B
2murky-satyr190.14562010/04/21 16:56:370B / 14B / 2B

Groovy _

RankUserSizeTimeDateStatistics
1nn563.37572010/04/17 15:39:150B / 29B / 27B
2murky-satyr653.37332010/04/16 06:30:320B / 28B / 36B

Language Ranking_

RankLangUserSizeScore
1gorubymurky-satyr1910000
2sednn325937
3Rubyeban325937
4Vimnn345588
5Perlyibe355428
6PHPzzo38385000
7AWKnn404750
8Groovynn563392
9JavaScriptxulapp573333
10Clojuremurky-satyr623064
11C51b(nn)642968
12Pythonxulapp652923
13Tclmurky-satyr652923
14Luamurky-satyr692753
15Postscriptyshl(embed)(bin)722638
16Jpooq752533
17Xtalpooq812345
18BASIC*yuko*852235
19bcteebee872183
20Maximapooq882159
21Haskellrst76902111
22OCamlm.ukai (embed)961979
23Prologpooq991919
24Pascal*yuko*1001900
25Javahallvabo1261507

return top