Spirals

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

Make a spiral of each size.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

25x25

Sample output:

+-----------------------+
+----------------------+|
|+--------------------+||
||+------------------+|||
|||+----------------+||||
||||+--------------+|||||
|||||+------------+||||||
||||||+----------+|||||||
|||||||+--------+||||||||
||||||||+------+|||||||||
|||||||||+----+||||||||||
||||||||||+--+|||||||||||
|||||||||||++||||||||||||
|||||||||||+-+|||||||||||
||||||||||+---+||||||||||
|||||||||+-----+|||||||||
||||||||+-------+||||||||
|||||||+---------+|||||||
||||||+-----------+||||||
|||||+-------------+|||||
||||+---------------+||||
|||+-----------------+|||
||+-------------------+||
|+---------------------+|
+-----------------------+

Sample input:_

40x17

Sample output:

+--------------------------------------+
+-------------------------------------+|
|+-----------------------------------+||
||+---------------------------------+|||
|||+-------------------------------+||||
||||+-----------------------------+|||||
|||||+---------------------------+||||||
||||||+-------------------------+|||||||
|||||||+-----------------------+||||||||
|||||||+------------------------+|||||||
||||||+--------------------------+||||||
|||||+----------------------------+|||||
||||+------------------------------+||||
|||+--------------------------------+|||
||+----------------------------------+||
|+------------------------------------+|
+--------------------------------------+

Sample input:_

45x56

Sample output:

+-------------------------------------------+
+------------------------------------------+|
|+----------------------------------------+||
||+--------------------------------------+|||
|||+------------------------------------+||||
||||+----------------------------------+|||||
|||||+--------------------------------+||||||
||||||+------------------------------+|||||||
|||||||+----------------------------+||||||||
||||||||+--------------------------+|||||||||
|||||||||+------------------------+||||||||||
||||||||||+----------------------+|||||||||||
|||||||||||+--------------------+||||||||||||
||||||||||||+------------------+|||||||||||||
|||||||||||||+----------------+||||||||||||||
||||||||||||||+--------------+|||||||||||||||
|||||||||||||||+------------+||||||||||||||||
||||||||||||||||+----------+|||||||||||||||||
|||||||||||||||||+--------+||||||||||||||||||
||||||||||||||||||+------+|||||||||||||||||||
|||||||||||||||||||+----+||||||||||||||||||||
||||||||||||||||||||+--+|||||||||||||||||||||
|||||||||||||||||||||++||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||+||||||||||||||||||||||
|||||||||||||||||||||+-+|||||||||||||||||||||
||||||||||||||||||||+---+||||||||||||||||||||
|||||||||||||||||||+-----+|||||||||||||||||||
||||||||||||||||||+-------+||||||||||||||||||
|||||||||||||||||+---------+|||||||||||||||||
||||||||||||||||+-----------+||||||||||||||||
|||||||||||||||+-------------+|||||||||||||||
||||||||||||||+---------------+||||||||||||||
|||||||||||||+-----------------+|||||||||||||
||||||||||||+-------------------+||||||||||||
|||||||||||+---------------------+|||||||||||
||||||||||+-----------------------+||||||||||
|||||||||+-------------------------+|||||||||
||||||||+---------------------------+||||||||
|||||||+-----------------------------+|||||||
||||||+-------------------------------+||||||
|||||+---------------------------------+|||||
||||+-----------------------------------+||||
|||+-------------------------------------+|||
||+---------------------------------------+||
|+-----------------------------------------+|
+-------------------------------------------+

Ranking

Perl _

RankUserSizeTimeDateStatistics
1Hem1440.04232016/06/28 17:17:170B / 41B / 103B

Python _

RankUserSizeTimeDateStatistics
1twobit1510.05962012/08/23 10:08:540B / 73B / 74B

J _

RankUserSizeTimeDateStatistics
1I., S.970.12782012/08/20 20:20:330B / 28B / 65B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1390.04642012/09/19 21:11:270B / 69B / 67B
2notogawa1490.05842012/08/26 17:45:420B / 75B / 71B
3tttaki1620.05052012/12/07 22:15:070B / 79B / 79B

z80 _

RankUserSizeTimeDateStatistics
1fsystem900.03282012/10/28 14:10:2743B / 22B / 22B

Vim _

RankUserSizeTimeDateStatistics
1clock660.13872012/08/18 13:26:067B / 39B / 17B

Language Ranking_

RankLangUserSizeScore
1Vimclock6610000
2z80fsystem907333
3JI., S.976804
4Haskellhenkma1394748
5PerlHem1444583
6Pythontwobit1514370

return to the top page