tic tac toe

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

Put X in winning place.
If there are 2 variants, chose upper, then more to left.
--BioFALSE

Options

exec is denied

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

Sample input:_

X--
-X-
OO-

Sample output:

X--
-X-
OOX

Sample input:_

X--
XO-
-O-

X-X
-O-
O--

OX-
-OO
-XX

--O
XOX
XO-

O-O
-X-
OX-

-O-
-XX
XOO

Sample output:

X--
XO-
XO-

XXX
-O-
O--

OX-
-OO
XXX

X-O
XOX
XO-

OXO
-X-
OX-

-OX
-XX
XOO

Sample input:_

OXO
OXO
X-X

-XX
O-O
OX-

X-X
OO-
-OX

-XO
O-O
-XX

Sample output:

OXO
OXO
XXX

XXX
O-O
OX-

XXX
OO-
-OX

-XO
OXO
-XX

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock(cheat)580.03332013/03/03 04:08:004B / 17B / 33B
2jbb790.03762013/03/03 06:52:080B / 23B / 54B
3jbb(cheat)880.04402013/03/03 02:43:150B / 29B / 58B
4clock970.04492013/03/02 22:38:420B / 37B / 59B
5jpl1000.03452013/02/21 03:54:410B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1brx480.03312013/03/05 03:20:420B / 18B / 27B
2tails480.03562013/03/05 21:33:278B / 15B / 23B
3jbb670.03872013/03/03 06:55:520B / 21B / 44B
4jbb(cheat)830.04102013/03/03 02:43:540B / 29B / 53B
5brx(poo)880.03302013/03/03 03:40:430B / 42B / 41B
6BioFALSE5820.04272013/03/02 06:10:063B / 213B / 362B

Python _

RankUserSizeTimeDateStatistics
1rolf1190.09382013/02/21 09:13:370B / 66B / 47B

J _

RankUserSizeTimeDateStatistics
1I., S.850.10122013/08/07 22:14:020B / 21B / 64B

sed _

RankUserSizeTimeDateStatistics
1clock590.03272013/03/03 05:24:580B / 30B / 25B

Postscript _

RankUserSizeTimeDateStatistics
1rolf11750.24912013/02/26 05:03:250B / 650B / 107B

GolfScript _

RankUserSizeTimeDateStatistics
1tails360.06302013/02/21 23:07:039B / 6B / 19B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails3610000
2Perlbrx487500
3Rubyclock(cheat)586206
4sedclock596101
5JI., S.854235
6Pythonrolf1193025
7Postscriptrolf1175306

return top