Network mask

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

Convert Network Mask(Subnet Mask) address to simply count the number of bits.

The mask address displayed by Dot-decimal notation. Display the converted number as network prefix (CIDR notation).

For example: 255.255.192.000 -> /18

Options

exec is denied

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

Sample input:_

255.255.255.0

Sample output:

/24

Sample input:_

255.255.255.128

Sample output:

/25

Sample input:_

255.255.255.255

Sample output:

/32

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock200.02192011/09/29 23:54:440B / 4B / 16B
2@tttttanaka260.06402012/03/17 13:20:090B / 11B / 15B

Perl _

RankUserSizeTimeDateStatistics
1TAKO/j0nKI210.00032010/04/08 17:56:220B / 11B / 10B
2dcutter270.25282010/04/09 00:17:340B / 11B / 16B

Python _

RankUserSizeTimeDateStatistics
1hallvabo260.06082010/04/08 06:55:570B / 14B / 12B
2TAKO/j0nKI290.04482010/04/08 18:24:150B / 17B / 12B
3tobiesque490.05242010/04/08 19:51:480B / 26B / 23B

PHP _

RankUserSizeTimeDateStatistics
1xulapp180.08742010/04/10 03:16:080B / 7B / 11B
2TAKO/j0nKI210.07172010/04/09 23:25:230B / 10B / 11B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima600.07922010/04/23 09:44:030B / 37B / 22B

Arc _

RankUserSizeTimeDateStatistics
1pooq285.97032010/10/08 12:33:150B / 13B / 12B

Clojure _

RankUserSizeTimeDateStatistics
1pooq383.02492012/03/18 07:02:310B / 22B / 13B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp270.01612010/04/10 03:03:070B / 15B / 11B
2murky-satyr290.06592010/04/09 12:09:300B / 16B / 12B
3TAKO/j0nKI310.04062010/04/08 18:13:170B / 18B / 12B
4ktt310.00042010/04/09 09:13:250B / 16B / 14B
5murky-satyr260.00032010/04/12 06:35:580B / 15B / 10B
6Tomac650.00472011/09/29 23:47:470B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1twobit350.04512012/07/03 07:56:220B / 19B / 16B
2pooq430.00242010/08/15 19:56:370B / 23B / 20B

Xtal _

RankUserSizeTimeDateStatistics
1pooq640.06662011/01/04 06:30:110B / 37B / 26B

Icon _

RankUserSizeTimeDateStatistics
1pooq470.04822012/04/03 22:24:330B / 30B / 14B

Prolog _

RankUserSizeTimeDateStatistics
1pooq550.10232010/04/09 17:22:420B / 31B / 22B

BASIC _

RankUserSizeTimeDateStatistics
1pooq430.00342010/12/27 19:58:540B / 23B / 19B

Perl6 _

RankUserSizeTimeDateStatistics
1pooq226.45532010/08/10 13:12:240B / 13B / 7B

J _

RankUserSizeTimeDateStatistics
1pooq310.46872010/04/09 08:03:050B / 15B / 13B
2I., S.240.11262012/06/03 00:03:460B / 6B / 18B
3pooq250.24352010/04/12 06:09:580B / 10B / 15B

C _

RankUserSizeTimeDateStatistics
1inaniwa(embed)360.03722010/04/09 08:11:272B / 18B / 16B
2TAKO/j0nKI410.05262010/04/08 18:28:350B / 23B / 18B
3mazun600.04462010/04/08 16:26:170B / 29B / 31B
4inaniwa660.04512010/04/09 08:06:450B / 36B / 30B
5not320.00032010/04/12 07:32:590B / 16B / 16B

C++ _

RankUserSizeTimeDateStatistics
1TAKO/j0nKI540.04072010/04/08 18:30:450B / 32B / 21B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai (embed)540.11962010/09/20 16:31:140B / 29B / 24B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa(embed)450.07802010/04/09 01:12:320B / 27B / 18B
2rst76450.08992010/04/09 20:22:170B / 27B / 18B
3rst76(embed)450.10842010/04/09 20:23:020B / 27B / 18B
4TAKO/j0nKI560.06702010/04/08 04:27:250B / 26B / 24B
5nobsun1540.10612010/04/08 10:11:500B / 78B / 64B

Java _

RankUserSizeTimeDateStatistics
1hallvabo720.29962010/04/08 17:21:300B / 45B / 26B
2TAKO/j0nKI770.30632010/04/08 18:45:560B / 48B / 28B
3nattow800.28672010/04/09 16:33:500B / 50B / 28B

C# _

RankUserSizeTimeDateStatistics
1TAKO/j0nKI920.15712010/04/08 18:10:020B / 62B / 25B
2darefilz1010.16882010/04/09 02:17:040B / 66B / 30B

Maxima _

RankUserSizeTimeDateStatistics
1pooq460.22032010/04/09 08:29:570B / 22B / 24B

Asymptote _

RankUserSizeTimeDateStatistics
1pooq420.33722011/12/19 07:34:450B / 25B / 17B

AWK _

RankUserSizeTimeDateStatistics
1nn200.04862010/04/09 00:38:400B / 7B / 13B

jq _

RankUserSizeTimeDateStatistics
1eban340.03182014/12/11 14:38:130B / 16B / 18B

wake _

RankUserSizeTimeDateStatistics
1pooq320.01172010/07/26 18:41:280B / 8B / 21B

dc _

RankUserSizeTimeDateStatistics
1Carlos Gutierrez140.03172010/04/08 05:21:160B / 9B / 5B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(embed)(bin)250.23992010/04/25 13:26:5410B / 12B / 2B
2yshl(embed)330.24142010/04/25 13:18:570B / 23B / 5B

R _

RankUserSizeTimeDateStatistics
1pooq350.48552010/04/09 10:02:140B / 17B / 18B

GolfScript _

RankUserSizeTimeDateStatistics
1nn190.13472010/04/09 01:10:280B / 5B / 14B

Vim _

RankUserSizeTimeDateStatistics
1nn240.10472010/04/09 01:00:362B / 13B / 8B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr345.39622010/04/09 12:18:560B / 20B / 13B
2nn436.92562010/04/09 13:32:180B / 27B / 15B

Language Ranking_

RankLangUserSizeScore
1dcCarlos Gutierrez1410000
2PHPxulapp187777
3GolfScriptnn197368
4AWKnn207000
5Rubyclock207000
6PerlTAKO/j0nKI216666
7Perl6pooq226363
8Vimnn245833
9JI., S.245833
10Postscriptyshl(embed)(bin)255600
11Pythonhallvabo265384
12JavaScriptmurky-satyr265384
13Arcpooq285000
14Cnot324375
15wakepooq324375
16Groovymurky-satyr344117
17jqeban344117
18Rpooq354000
19Luatwobit354000
20Clojurepooq383684
21Asymptotepooq423333
22BASICpooq433255
23Haskellnotogawa(embed)453111
24Maximapooq463043
25Iconpooq472978
26C++TAKO/j0nKI542592
27OCamlm.ukai (embed)542592
28Prologpooq552545
29Common LISPkozima602333
30Xtalpooq642187
31Javahallvabo721944
32C#TAKO/j0nKI921521

return top