Squares Round 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

Convert dots into squares. -leonid

I've removed trailing whitespaces from 2nd input -- shinh

Options

exec is denied

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

Sample input:_

.

Sample output:

 ___
|   |
|___|

Sample input:_

   . .
 .     .
    .
.  ...  .
  .....
.  ...  .
    .
 .     .
   . .

Sample output:

             ___     ___
            |   |   |   |
     ___    |___|   |___|    ___
    |   |                   |   |
    |___|        ___        |___|
                |   |
 ___         ___|___|___         ___
|   |       |   |   |   |       |   |
|___|    ___|___|___|___|___    |___|
        |   |   |   |   |   |
 ___    |___|___|___|___|___|    ___
|   |       |   |   |   |       |   |
|___|       |___|___|___|       |___|
                |   |
     ___        |___|        ___
    |   |                   |   |
    |___|    ___     ___    |___|
            |   |   |   |
            |___|   |___|

Sample input:_

...............
.             .
. ..... ..... .
. .     .   . .
. . ... . . . .
. .   . .   . .
. ..... ..... .
.             .
. . . . ..... .
. . .   .     .
. . ... ... . .
. .     .   . .
. ..... . ... .
.             .
...............

Sample output:

 ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
|   |                                                   |   |
|___|    ___ ___ ___ ___ ___     ___ ___ ___ ___ ___    |___|
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|   |___|___|___|___|___|   |___|___|___|___|___|   |___|
|   |   |   |                   |   |           |   |   |   |
|___|   |___|    ___ ___ ___    |___|    ___    |___|   |___|
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|   |___|   |___|___|___|   |___|   |___|   |___|   |___|
|   |   |   |           |   |   |   |           |   |   |   |
|___|   |___|___ ___ ___|___|   |___|___ ___ ___|___|   |___|
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|   |___|___|___|___|___|   |___|___|___|___|___|   |___|
|   |                                                   |   |
|___|    ___     ___     ___     ___ ___ ___ ___ ___    |___|
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|   |___|   |___|   |___|   |___|___|___|___|___|   |___|
|   |   |   |   |   |           |   |                   |   |
|___|   |___|   |___|___ ___    |___|___ ___     ___    |___|
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|   |___|   |___|___|___|   |___|___|___|   |___|   |___|
|   |   |   |                   |   |           |   |   |   |
|___|   |___|___ ___ ___ ___    |___|    ___ ___|___|   |___|
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|   |___|___|___|___|___|   |___|   |___|___|___|   |___|
|   |                                                   |   |
|___|___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___|___|
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid1150.03002011/02/12 03:13:420B / 46B / 61B
2yvl1160.04292011/01/17 20:48:190B / 51B / 57B
3shinh1190.01752011/01/17 00:05:232B / 47B / 60B
4leonid1130.04682011/02/12 04:41:400B / 47B / 58B
5yvl1140.06052011/02/12 04:37:320B / 47B / 59B

Perl _

RankUserSizeTimeDateStatistics
1teebee920.02612011/02/11 07:55:000B / 23B / 63B

Python _

RankUserSizeTimeDateStatistics
1recursive1560.10402011/01/15 18:26:220B / 74B / 76B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1400.05602011/02/11 18:37:340B / 49B / 86B
2nn1370.05752011/02/21 00:32:500B / 50B / 82B

J _

RankUserSizeTimeDateStatistics
1I., S.980.11812011/01/17 21:24:300B / 20B / 73B
2I., S.890.13502011/02/24 22:26:450B / 19B / 65B

C _

RankUserSizeTimeDateStatistics
1nn1480.00192011/02/06 01:47:230B / 71B / 75B

Haskell _

RankUserSizeTimeDateStatistics
1koyama411630.00962011/01/18 23:18:330B / 82B / 70B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*2040.00242011/02/11 19:43:040B / 99B / 93B
2*yuko*1900.02662012/11/19 20:33:280B / 86B / 93B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*770.03112011/02/11 17:49:5641B / 11B / 18B

Groovy _

RankUserSizeTimeDateStatistics
1nn1416.69732011/02/11 22:01:120B / 61B / 71B

Language Ranking_

RankLangUserSizeScore
1z80*yuko*7710000
2JI., S.898651
3Perlteebee928369
4Rubyleonid1136814
5JavaScriptnn1375620
6Groovynn1415460
7Cnn1485202
8Pythonrecursive1564935
9Haskellkoyama411634723
10Fortran*yuko*1904052

return top