Draw Hailstones

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

I'm writing this while stuck inside during a blizzard.

--Histocrat

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

15

Sample output:

               0
                                              O
                       0
                                                                      O
                                   0
                                                                                                          O
                                                     0
                                                                                                                                                                0
                                                                                0
                                        0
                    0
          O
     0
                0
        0
    0
  O

Sample input:_

17

Sample output:

                 0
                                                    0
                          O
             0
                                        0
                    0
          O
     0
                0
        0
    0
  O

Sample input:_

28

Sample output:

                            0
              O
       0
                      O
           0
                                  O
                 0
                                                    0
                          O
             0
                                        0
                    0
          O
     0
                0
        0
    0
  O

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid560.03462013/02/09 06:17:230B / 29B / 23B
2Histocrat590.03742013/02/09 05:46:220B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tails550.04872013/02/09 12:34:540B / 18B / 37B
2teebee550.05062013/02/11 09:30:410B / 26B / 29B

Python _

RankUserSizeTimeDateStatistics
1teebee580.04972013/02/13 05:13:130B / 32B / 24B
2leonid580.06332013/02/13 06:59:590B / 32B / 24B
3mitchs580.16512014/02/18 07:32:180B / 32B / 24B
4twobit600.07372013/02/09 07:00:310B / 32B / 26B
5rolf600.04662013/02/09 23:45:060B / 32B / 26B
6hallvabo600.05422013/02/14 23:24:120B / 32B / 26B

PHP _

RankUserSizeTimeDateStatistics
1teebee730.06362013/03/16 09:35:150B / 34B / 37B

Io _

RankUserSizeTimeDateStatistics
1pooq1020.26292013/03/04 16:46:491B / 56B / 43B

JavaScript _

RankUserSizeTimeDateStatistics
1copy740.04002013/04/20 12:08:550B / 41B / 32B
2Shmiddty740.06572013/04/21 11:58:490B / 40B / 33B

REXX _

RankUserSizeTimeDateStatistics
1*yuko*730.04592014/04/05 21:53:030B / 40B / 30B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq760.04312013/03/05 19:04:160B / 39B / 37B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1010.03212013/03/05 17:39:520B / 57B / 36B

J _

RankUserSizeTimeDateStatistics
1I., S.520.06682013/04/16 18:46:360B / 15B / 37B
2pooq610.08632013/03/04 15:49:290B / 16B / 44B
3random840.09112013/03/03 02:03:550B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1henkma940.04042013/04/20 23:20:570B / 48B / 42B

Maxima _

RankUserSizeTimeDateStatistics
1pooq960.77522013/03/04 22:09:280B / 47B / 45B

Octave _

RankUserSizeTimeDateStatistics
1pooq950.78162013/03/05 23:55:020B / 50B / 45B

AWK _

RankUserSizeTimeDateStatistics
1teebee590.04122013/03/16 22:20:480B / 29B / 29B

R _

RankUserSizeTimeDateStatistics
1pooq950.44242013/03/25 12:05:210B / 47B / 46B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)1520.03522015/10/05 02:35:1438B / 55B / 54B
2mitchs1990.03252015/04/22 15:23:300B / 0B / 199B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u1900.05742016/09/14 01:37:520B / 0B / 0B
2mitchs2110.04502015/04/22 17:04:100B / 0B / 0B

Groovy _

RankUserSizeTimeDateStatistics
1teebee712.87492013/02/13 06:45:360B / 42B / 28B

Logo _

RankUserSizeTimeDateStatistics
1teebee920.07032013/03/04 05:12:120B / 47B / 34B

Language Ranking_

RankLangUserSizeScore
1JI., S.5210000
2Perltails559454
3Rubyleonid569285
4Pythonteebee588965
5AWKteebee598813
6Groovyteebee717323
7PHPteebee737123
8REXX*yuko*737123
9JavaScriptcopy747027
10PARI/GPpooq766842
11Logoteebee925652
12Haskellhenkma945531
13Octavepooq955473
14Rpooq955473
15Maximapooq965416
16BASICpooq1015148
17Iopooq1025098
18Brainfuckmitchs (cheat)1523421
19Whitespacekaz_u1902736

return top