simple octagon tesselation

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

Create an octagon of octagons with side length n.

Options

exec is denied

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

Sample input:_

1

Sample output:

 ##
#  #
#  #
 ##

Sample input:_

3

Sample output:

       ## ## ##
      #  #  #  #
      #  #  #  #
    ## ## ## ## ##
   #  #  #  #  #  #
   #  #  #  #  #  #
 ## ## ## ## ## ## ##
#  #  #  #  #  #  #  #
#  #  #  #  #  #  #  #
 ## ## ## ## ## ## ##
#  #  #  #  #  #  #  #
#  #  #  #  #  #  #  #
 ## ## ## ## ## ## ##
#  #  #  #  #  #  #  #
#  #  #  #  #  #  #  #
 ## ## ## ## ## ## ##
   #  #  #  #  #  #
   #  #  #  #  #  #
    ## ## ## ## ##
      #  #  #  #
      #  #  #  #
       ## ## ##

Sample input:_

4

Sample output:

          ## ## ## ##
         #  #  #  #  #
         #  #  #  #  #
       ## ## ## ## ## ##
      #  #  #  #  #  #  #
      #  #  #  #  #  #  #
    ## ## ## ## ## ## ## ##
   #  #  #  #  #  #  #  #  #
   #  #  #  #  #  #  #  #  #
 ## ## ## ## ## ## ## ## ## ##
#  #  #  #  #  #  #  #  #  #  #
#  #  #  #  #  #  #  #  #  #  #
 ## ## ## ## ## ## ## ## ## ##
#  #  #  #  #  #  #  #  #  #  #
#  #  #  #  #  #  #  #  #  #  #
 ## ## ## ## ## ## ## ## ## ##
#  #  #  #  #  #  #  #  #  #  #
#  #  #  #  #  #  #  #  #  #  #
 ## ## ## ## ## ## ## ## ## ##
#  #  #  #  #  #  #  #  #  #  #
#  #  #  #  #  #  #  #  #  #  #
 ## ## ## ## ## ## ## ## ## ##
   #  #  #  #  #  #  #  #  #
   #  #  #  #  #  #  #  #  #
    ## ## ## ## ## ## ## ##
      #  #  #  #  #  #  #
      #  #  #  #  #  #  #
       ## ## ## ## ## ##
         #  #  #  #  #
         #  #  #  #  #
          ## ## ## ##

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1ozy4dm1050.05022009/06/20 09:17:480B / 53B / 51B
2primo1100.16222009/06/18 21:07:380B / 48B / 57B

Perl _

RankUserSizeTimeDateStatistics
1daniel AT agac.de (a.k.a. dcutter)1190.35662009/06/18 04:13:460B / 34B / 77B
2dcutter1230.02232009/06/15 05:39:450B / 38B / 76B
3pascal1280.17842009/06/11 06:50:440B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1primo1180.11622009/06/19 21:25:120B / 54B / 58B
2Sasa1950.08652009/06/10 19:45:520B / 85B / 95B

PHP _

RankUserSizeTimeDateStatistics
1logica1490.33772009/06/19 09:02:311B / ?B / ?B
218kb1530.14722009/06/15 21:38:331B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1alice1480.24482009/06/11 21:25:460B / 50B / 82B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1360.09802009/06/19 01:46:020B / 65B / 70B

J _

RankUserSizeTimeDateStatistics
1pooq920.83592009/06/20 16:53:320B / 33B / 57B
2pooq870.14782011/01/30 09:41:220B / 31B / 54B

C _

RankUserSizeTimeDateStatistics
1ozy4dm1190.00052009/06/14 23:50:080B / 58B / 60B
2secka1240.11942009/06/14 20:40:210B / ?B / ?B
3shinh1390.00052009/06/11 23:58:570B / 70B / 69B
451b1400.07392009/06/21 01:29:170B / 61B / 73B
5pascal1510.14282009/06/13 16:32:360B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1nn1350.02572009/06/19 02:13:400B / 62B / 68B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1281.34682009/06/13 21:55:4053B / 46B / 22B
2yshl2241.34012009/06/13 21:55:300B / 148B / 28B

GolfScript _

RankUserSizeTimeDateStatistics
1flagitious680.50912009/06/19 10:53:230B / 17B / 47B

gs2 _

RankUserSizeTimeDateStatistics
1whio350.31222017/04/14 00:25:3812B / 14B / 7B

Vim _

RankUserSizeTimeDateStatistics
1nn1261.57422009/11/07 15:20:5112B / 69B / 37B

Groovy _

RankUserSizeTimeDateStatistics
1nn12110.07542009/06/18 01:08:380B / 58B / 53B

Language Ranking_

RankLangUserSizeScore
1gs2whio3510000
2GolfScriptflagitious685147
3Jpooq874022
4Rubyozy4dm1053333
5Pythonprimo1182966
6Cozy4dm1192941
7Perldaniel AT agac.de (a.k.a. dcutter)1192941
8Groovynn1212892
9Vimnn1262777
10Postscriptyshl(bin)1282734
11AWKnn1352592
12JavaScriptnn1362573
13Common LISPalice1482364
14PHPlogica1492348

return top