Network mask v2

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

Transform subnet mask from ip to slash notation. Only now do all of them.

Options

exec is denied

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

Sample input:_

0.0.0.0
128.0.0.0
192.0.0.0
224.0.0.0
240.0.0.0
248.0.0.0
252.0.0.0
254.0.0.0
255.0.0.0
255.128.0.0
255.192.0.0
255.224.0.0
255.240.0.0
255.248.0.0
255.252.0.0
255.254.0.0
255.255.0.0
255.255.128.0
255.255.192.0
255.255.224.0
255.255.240.0
255.255.248.0
255.255.252.0
255.255.254.0
255.255.255.0
255.255.255.128
255.255.255.192
255.255.255.224
255.255.255.240
255.255.255.248
255.255.255.252
255.255.255.254
255.255.255.255

Sample output:

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

Sample input:_

255.255.252.0
255.255.240.0
255.255.255.248
192.0.0.0
255.255.255.128
255.255.255.254
255.255.0.0
240.0.0.0
255.0.0.0
224.0.0.0
128.0.0.0
240.0.0.0
255.224.0.0
255.255.224.0
255.255.240.0
252.0.0.0
255.255.255.254
255.248.0.0
255.255.255.192
240.0.0.0
255.128.0.0
255.255.255.240
255.240.0.0
255.192.0.0
255.255.224.0
255.255.255.240
255.254.0.0
248.0.0.0
255.255.254.0
255.255.255.252
255.192.0.0
255.128.0.0
0.0.0.0
248.0.0.0
255.255.248.0
240.0.0.0
255.255.224.0
255.248.0.0
255.255.254.0
255.255.252.0
255.255.255.254
255.255.255.192
255.255.255.248
255.255.248.0
248.0.0.0
255.255.255.128
255.255.224.0

Sample output:

22
20
29
2
25
31
16
4
8
3
1
4
11
19
20
6
31
13
26
4
9
28
12
10
19
28
15
5
23
30
10
9
0
5
21
4
19
13
23
22
31
26
29
21
5
25
19

Sample input:_

192.0.0.0
255.255.255.240
255.255.255.240
252.0.0.0
255.255.255.248
255.255.252.0
255.255.192.0
255.248.0.0
255.224.0.0
255.255.255.224
255.255.252.0
255.255.224.0
224.0.0.0
255.224.0.0
255.255.255.240
252.0.0.0
255.248.0.0
0.0.0.0
255.255.255.240
255.224.0.0
255.255.0.0
255.255.255.224
128.0.0.0
255.252.0.0
255.254.0.0
255.255.255.248
255.224.0.0
252.0.0.0
255.255.255.248
255.255.255.0
255.0.0.0
255.252.0.0
192.0.0.0
255.255.255.254
255.128.0.0
255.248.0.0
255.255.248.0
128.0.0.0
240.0.0.0
252.0.0.0
255.255.254.0
224.0.0.0
255.0.0.0
255.252.0.0
255.0.0.0
255.240.0.0
255.192.0.0

Sample output:

2
28
28
6
29
22
18
13
11
27
22
19
3
11
28
6
13
0
28
11
16
27
1
14
15
29
11
6
29
24
8
14
2
31
9
13
21
1
4
6
23
3
8
14
8
12
10

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid310.00422010/04/21 15:02:400B / 13B / 16B
2shinh310.00432010/05/03 02:25:210B / 12B / 17B
3yvl310.00412010/05/04 18:01:300B / 13B / 16B
4primo330.00532010/04/22 21:59:360B / 16B / 14B
5msk380.00412010/04/21 21:08:250B / 17B / 19B
6eban410.00612010/04/21 16:14:210B / 18B / 20B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89300.00382010/04/22 05:52:190B / ?B / ?B
2ySas380.00382010/04/22 02:01:490B / 21B / 16B
3prakash380.00382010/04/26 06:24:310B / 19B / 17B
4dcutter460.00312010/04/21 20:41:590B / 22B / 21B

Python _

RankUserSizeTimeDateStatistics
1hallvabo780.02612010/04/22 00:33:410B / 51B / 19B
2recursive780.01592010/04/22 00:51:180B / 51B / 19B
3Defenestrator780.01172010/05/05 12:15:380B / 51B / 19B
4tobiesque840.01652010/04/26 11:53:060B / 54B / 21B

PHP _

RankUserSizeTimeDateStatistics
1clock650.07572011/10/11 12:23:141B / 41B / 23B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima830.11112010/05/04 15:06:010B / ?B / ?B
2youz1010.12102010/05/04 16:17:181B / 61B / 36B

Arc _

RankUserSizeTimeDateStatistics
1youz653.40982010/05/04 16:13:570B / 46B / 16B
2murky-satyr703.41682010/05/05 12:59:130B / 47B / 20B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr962.90982010/05/05 11:10:550B / 71B / 21B
2youz973.05042010/05/04 13:52:010B / 59B / 35B
3murky-satyr745.37872010/05/08 03:52:370B / 44B / 27B

JavaScript _

RankUserSizeTimeDateStatistics
1nn650.01292010/04/25 01:59:410B / 35B / 30B
2murky-satyr710.01942010/04/27 06:11:040B / 36B / 35B
3xulapp800.01442010/04/24 01:40:240B / 41B / 39B
4Tomac650.02432011/09/30 13:18:070B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*1000.00422010/04/28 12:33:440B / 55B / 41B
2Carlos Gutierrez1080.00372010/05/05 01:32:110B / 63B / 37B
3Carlos Gutierrez(bin$)1110.00362010/05/05 01:40:060B / 64B / 39B
4Carlos Gutierrez(*yuko*)960.00412010/05/05 14:22:400B / 56B / 37B

J _

RankUserSizeTimeDateStatistics
1pooq400.06172010/04/24 02:56:390B / 12B / 27B
2I., S.(pooq)370.11922011/01/04 22:35:070B / 10B / 26B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer100.53262021/04/05 17:40:315B / 4B / 1B

C _

RankUserSizeTimeDateStatistics
1inaniwa670.00102010/04/26 11:52:420B / 39B / 28B
2msk760.00102010/05/05 13:34:120B / 41B / 35B
3nn780.00112010/05/03 21:00:050B / 43B / 35B
4_1380.00192010/05/07 11:55:580B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa880.01152010/05/01 00:06:040B / ?B / ?B
2rst76940.01002010/05/04 09:02:150B / 58B / 27B
3tanakh980.00832010/05/04 03:34:200B / 58B / 28B
4snowclust1090.00832010/05/03 05:52:290B / ?B / ?B

ObjC _

RankUserSizeTimeDateStatistics
1zzo38(inaniwa)670.03832011/01/03 05:14:290B / 39B / 28B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1780.27922010/04/22 03:39:510B / 122B / 50B
2Patashu1800.27942010/04/21 17:50:430B / 122B / 53B
3patashu2150.27962010/04/21 15:30:560B / 140B / 70B

Pascal _

RankUserSizeTimeDateStatistics
1uru1250.00582010/04/26 20:48:000B / 88B / 30B

Maxima _

RankUserSizeTimeDateStatistics
1pooq960.89732011/10/04 12:43:470B / 58B / 37B

AWK _

RankUserSizeTimeDateStatistics
1nn570.00222010/04/25 09:13:380B / 23B / 34B

Zsh _

RankUserSizeTimeDateStatistics
1zzo38(file)530.15952010/04/25 06:24:400B / 31B / 14B
2zzo38(file,postmortem)500.30942010/05/07 23:59:110B / 26B / 16B

xgawk _

RankUserSizeTimeDateStatistics
1zzo38(nn)570.03552011/01/03 05:13:550B / 23B / 34B

Postscript _

RankUserSizeTimeDateStatistics
1ySas700.25132010/04/26 13:26:0230B / 19B / 21B

GolfScript _

RankUserSizeTimeDateStatistics
1yvl220.15742010/05/04 18:37:150B / 9B / 13B
2nn230.18202010/05/05 09:08:450B / 8B / 15B

gs2 _

RankUserSizeTimeDateStatistics
1whio50.24462017/04/29 00:22:311B / 4B / 0B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo38190.29912010/05/02 01:13:550B / 8B / 11B

Vim _

RankUserSizeTimeDateStatistics
1nn1200.39512010/05/04 15:58:374B / 61B / 46B
2nn920.15802011/10/11 13:36:285B / 43B / 40B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr260.35852010/05/08 04:10:480B / 8B / 18B

Groovy _

RankUserSizeTimeDateStatistics
1nn703.52632010/05/05 12:26:180B / 49B / 20B
2murky-satyr728.12532010/05/05 11:31:250B / 53B / 17B
3murky-satyr686.93502010/05/08 04:06:540B / 45B / 23B

Language Ranking_

RankLangUserSizeScore
1gs2whio510000
2JellyErik the Outgolfer105000
3FlogScriptzzo38192631
4GolfScriptyvl222272
5gorubymurky-satyr261923
6Perltybalt89301666
7Rubyleonid311612
8JI., S.(pooq)371351
9Zshzzo38(file,postmortem)501000
10AWKnn57877
11xgawkzzo38(nn)57877
12JavaScriptnn65769
13Arcyouz65769
14PHPclock65769
15Cinaniwa67746
16ObjCzzo38(inaniwa)67746
17Groovymurky-satyr68735
18PostscriptySas70714
19Clojuremurky-satyr74675
20Pythonhallvabo78641
21Common LISPkozima83602
22Haskellnotogawa88568
23Vimnn92543
24BASICCarlos Gutierrez(*yuko*)96520
25Maximapooq96520
26Pascaluru125400
27Javahallvabo178280

return to the top page