Draw fences

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

Fence the animals.
-xnor

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

XOX
OOX
XXO

Sample output:

+-+-+-+
|X|O|X|
+-+ | |
|O O|X|
+---+-+
|X X|O|
+---+-+

Sample input:_

XXXOO
OXXXO
XXXOX
OOXOO
OXOOO

Sample output:

+-----+---+
|X X X|O O|
+-+   +-+ |
|O|X X X|O|
+-+   +-+-+
|X X X|O|X|
+---+ | +-+
|O O|X|O O|
| +-+-+   |
|O|X|O O O|
+-+-+-----+

Sample input:_

XOOXOOOOXXXOOX
XOXXXOXXOXXXOX
XOOOXXOOXXOXXX
XXOOOXOOXOXOXO
XXOOXOXXOOOXOO
OOXOOOXOOXOXXX
OXOXXXXOXOXXOX
OXOOOXXXOOXOXX
OOXXXXOXXOXOXX
XOOXXOXOOXXOXO
OXXXOOXXXXOXXO
OOXXXXOXXXXXOO
XOXOOOOXXXOXXO
XXXOXXOOXOXOXX

Sample output:

+-+---+-+-------+-----+---+-+
|X|O O|X|O O O O|X X X|O O|X|
| | +-+ +-+ +---+-+   +-+ | |
|X|O|X X X|O|X X|O|X X X|O|X|
| | +---+ +-+---+-+ +-+ +-+ |
|X|O O O|X X|O O|X X|O|X X X|
| +-+   +-+ |   | +-+-+-+ +-+
|X X|O O O|X|O O|X|O|X|O|X|O|
|   |   +-+-+---+-+ +-+-+-+ |
|X X|O O|X|O|X X|O O O|X|O O|
+---+-+ +-+ | +-+ +-+ | +---+
|O O|X|O O O|X|O O|X|O|X X X|
| +-+-+-----+ | +-+-+-+ +-+ |
|O|X|O|X X X X|O|X|O|X X|O|X|
| | | +---+   +-+-+ | +-+-+ |
|O|X|O O O|X X X|O O|X|O|X X|
| +-+-----+ +-+ +-+ | | |   |
|O O|X X X X|O|X X|O|X|O|X X|
+-+ +-+   +-+-+---+-+ | | +-+
|X|O O|X X|O|X|O O|X X|O|X|O|
+-+---+ +-+ | +---+ +-+-+ | |
|O|X X X|O O|X X X X|O|X X|O|
| +-+   +---+-+     +-+ +-+ |
|O O|X X X X|O|X X X X X|O O|
+-+ | +-----+ |     +-+ +-+ |
|X|O|X|O O O O|X X X|O|X X|O|
| +-+ | +---+ +-+ +-+-+-+ +-+
|X X X|O|X X|O O|X|O|X|O|X X|
+-----+-+---+---+-+-+-+-+---+

Ranking

Perl _

RankUserSizeTimeDateStatistics
1tails1200.03782016/10/13 09:45:550B / 33B / 84B
2rsFalse2450.04342016/10/09 03:59:440B / 68B / 152B
3mitchs (tails)1080.03672016/10/22 10:17:570B / 32B / 73B

Python _

RankUserSizeTimeDateStatistics
1mitchs1740.10592016/10/13 09:59:180B / 82B / 77B
2rolf3830.10942016/10/10 06:06:420B / 172B / 171B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs1720.17182016/10/13 11:40:040B / 78B / 79B

C _

RankUserSizeTimeDateStatistics
1smkt4660.03182017/05/02 15:47:310B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1dianne2260.03532016/10/20 04:04:440B / 96B / 115B
2yuki3970.03332016/10/12 09:18:040B / 150B / 184B
3mitchs (dianne)2240.03342016/10/23 03:20:200B / 97B / 112B

sed _

RankUserSizeTimeDateStatistics
1tails1670.04592016/10/09 16:17:100B / 36B / 105B
2mitchs (tails)1620.03882016/10/22 11:55:120B / 34B / 104B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs3250.04152016/10/19 09:16:110B / 0B / 325B
2mitchs ()6030.04142016/10/19 22:20:250B / 0B / 603B

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs640.70352016/10/20 22:08:060B / 16B / 47B
2tails720.20312016/10/20 22:28:550B / 19B / 51B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs420.55242016/10/20 15:36:1622B / 10B / 7B
2whio890.29332016/10/21 02:54:5063B / 16B / 6B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs4210000
2GolfScriptmitchs646562
3Perlmitchs (tails)1083888
4sedmitchs (tails)1622592
5Python3mitchs1722441
6Pythonmitchs1742413
7Haskellmitchs (dianne)2241875
8Brainfuckmitchs3251292
9Csmkt466901

return top