Distance from x

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 the number grids.

-- xsot

Options

exec is denied

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

Sample input:_

..........
..........
..........
..x.......
..........
..........
..........
.......x..
..........
..........

Sample output:

5434567789
4323456678
3212345567
2101234456
3212344345
4323443234
5434432123
6544321012
7655432123
8766543234

Sample input:_

..........
.....x....
........x.
..........
..........
..........
.x........
..........
..........
..........

Sample output:

6543212323
5432101212
5443212101
4344323212
3234434323
2123445434
1012345545
2123456656
3234567767
4345678878

Sample input:_

..........
..........
..........
..........
....x.....
..........
......x...
..........
..........
..........

Sample output:

8765456789
7654345678
6543234567
5432123456
4321012345
5432121234
6543210123
7654321234
8765432345
9876543456

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs740.04652015/11/14 09:20:470B / 34B / 37B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs710.19552015/11/15 07:05:580B / 34B / 35B

Perl _

RankUserSizeTimeDateStatistics
1tails620.05332015/10/25 11:02:280B / 26B / 34B
2shlomif780.04602015/11/10 16:29:310B / 31B / 45B
3%20880.04622015/11/07 11:52:220B / 32B / 53B
4BioFALSE1310.06172015/11/03 23:32:540B / 50B / 79B
5teebee(tails)600.04522015/11/21 18:05:320B / 24B / 34B

Python _

RankUserSizeTimeDateStatistics
1mitchs (luck)1130.08632015/10/24 23:44:013B / 63B / 37B
2xsot (luck)1130.09872015/10/24 23:56:192B / 63B / 38B
3mitchs (alt)1160.11392015/11/15 13:55:200B / 56B / 52B
4mitchs1290.10482015/10/24 23:54:200B / 73B / 45B
5xsot1300.09492015/10/24 18:07:470B / 75B / 44B
6llhuii1320.10992015/10/26 00:20:390B / 80B / 43B
7recursive1440.09932015/11/05 14:55:570B / 86B / 44B
8rolf2090.12632015/10/25 23:30:170B / 114B / 72B
9mitchs (llhuii)1110.11932015/11/21 03:12:300B / 57B / 46B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs1130.18882015/11/15 13:56:520B / 56B / 50B
2bad_bot2330.15462015/11/08 20:12:410B / ?B / ?B

J _

RankUserSizeTimeDateStatistics
1I., S.540.07322015/11/21 00:08:090B / 13B / 40B

C _

RankUserSizeTimeDateStatistics
1llhuii1300.03322015/11/20 23:17:130B / 63B / 67B
2chocobi2040.03172015/11/09 23:17:140B / 100B / 104B
3mitchs (llhuii,alt)1100.04082015/11/21 10:07:120B / 54B / 55B
4mitchs (llhuii)1190.03292015/11/21 07:16:160B / 55B / 64B
5llhuii1270.03632015/11/21 00:25:140B / 61B / 66B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii1300.04212015/11/20 23:44:350B / 63B / 67B

AWK _

RankUserSizeTimeDateStatistics
1llhuii1170.03902015/11/20 23:55:510B / 53B / 64B
2mitchs (llhuii)1040.04612015/11/21 04:10:180B / 47B / 56B
3llhuii1110.05212015/11/21 00:10:570B / 49B / 62B

sed _

RankUserSizeTimeDateStatistics
1tails830.03992015/10/25 11:27:420B / 35B / 43B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii1110.05122015/11/21 00:09:190B / 49B / 62B

GolfScript _

RankUserSizeTimeDateStatistics
1tails361.57162015/10/25 11:03:260B / 14B / 22B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs210.52002015/11/08 09:09:2310B / 6B / 4B

goruby _

RankUserSizeTimeDateStatistics
1mitchs610.08252015/11/20 23:31:310B / 20B / 38B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs2110000
2GolfScripttails365833
3JI., S.543888
4Perlteebee(tails)603500
5gorubymitchs613442
6Ruby2mitchs712957
7Rubymitchs742837
8sedtails832530
9AWKmitchs (llhuii)1042019
10Cmitchs (llhuii,alt)1101909
11xgawkllhuii1111891
12Pythonmitchs (llhuii)1111891
13Python3mitchs1131858
14ObjCllhuii1301615

return top