Distance from x 2

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

Avoid the (o)bstacles. The inputs shouldn't be as weak this time.

-- xsot

Options

exec is denied

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

Sample input:_

..........
......x...
..........
....o.....
....ooo...
..........
...x......
..........
..........
..........

Sample output:

7654321234
6543210123
7654321234
6543-32345
5432---456
4321234567
3210123456
4321234567
5432345678
6543456789

Sample input:_

..........
..........
........x.
.x........
..........
...ooooo..
...o.x.o..
...o...o..
..........
..........

Sample output:

4345654323
3234543212
2123432101
1012343212
2123454323
323-----34
434-101-45
545-212-56
6554323456
7665434567

Sample input:_

..........
..........
..oooo....
.....ooo..
...x.o....
.....o.x..
..x..o....
..........
x.........
..........

Sample output:

7678998767
6567887656
54----6545
43212---34
32101-2123
32112-1012
21012-2123
1212343234
0123454345
1234565456

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs840.05022015/11/14 10:52:530B / 36B / 45B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs800.18852015/11/15 07:14:080B / 37B / 41B

Perl _

RankUserSizeTimeDateStatistics
1llhuii(tails)610.05362015/11/21 02:16:190B / 25B / 34B
2teebee(tails)620.04622015/11/21 01:10:270B / 25B / 35B
3tails640.05342015/10/25 11:04:470B / 26B / 36B
4%20(tails)690.04162015/11/21 12:10:230B / 28B / 39B
5%20900.04492015/11/07 11:52:300B / 33B / 54B
6BioFALSE1340.05062015/11/03 23:40:220B / 52B / 80B

Python _

RankUserSizeTimeDateStatistics
1llhuii(mitchs)1260.13302015/11/21 02:31:580B / 65B / 54B
2mitchs (alt)1260.10452015/11/21 03:07:150B / 61B / 56B
3xsot (mitchs)1260.09712015/11/21 13:06:270B / 65B / 53B
4mitchs1470.24172015/11/07 07:48:560B / 83B / 57B
5xsot1551.60752015/11/07 18:52:482B / 76B / 71B
6hallvabo1860.10982015/11/06 07:58:280B / 98B / 79B
7mitchs_1900.98272015/11/06 11:46:290B / 98B / 75B
8rolf2260.11872015/10/25 22:43:010B / 122B / 81B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs1280.18092015/11/15 13:52:290B / 60B / 60B

J _

RankUserSizeTimeDateStatistics
1I., S.750.06932015/11/21 00:34:170B / 19B / 56B
2I., S.740.07172015/11/22 11:15:350B / 20B / 54B

C _

RankUserSizeTimeDateStatistics
1llhuii(mitchs)1190.03832015/11/21 16:45:460B / 59B / 59B
2mitchs1190.05272015/11/21 17:01:350B / 59B / 59B
3llhuii(mitchs)1160.03962015/11/21 21:37:544B / 56B / 56B

sed _

RankUserSizeTimeDateStatistics
1tails850.03442015/10/25 11:28:560B / 36B / 44B
2%20(tails)850.03472015/11/21 12:22:570B / 36B / 44B

GolfScript _

RankUserSizeTimeDateStatistics
1tails371.77992015/10/25 11:05:460B / 14B / 23B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs240.49312015/11/08 22:05:3213B / 6B / 4B
2mitchs (tails)241.13632015/11/22 04:36:2710B / 8B / 5B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs2410000
2GolfScripttails376486
3Perlllhuii(tails)613934
4JI., S.743243
5Ruby2mitchs803000
6Rubymitchs842857
7sedtails852823
8Cllhuii(mitchs)1162068
9Pythonllhuii(mitchs)1261904
10Python3mitchs1281875

return top