bars

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

Draw bars.
-- twobit

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Sample output:

                                                             __
                                                          __|  |
                                                       __|  |  |
                                                    __|  |  |  |
                                                 __|  |  |  |  |
                                              __|  |  |  |  |  |
                                           __|  |  |  |  |  |  |
                                        __|  |  |  |  |  |  |  |
                                     __|  |  |  |  |  |  |  |  |
                                  __|  |  |  |  |  |  |  |  |  |
                               __|  |  |  |  |  |  |  |  |  |  |
                            __|  |  |  |  |  |  |  |  |  |  |  |
                         __|  |  |  |  |  |  |  |  |  |  |  |  |
                      __|  |  |  |  |  |  |  |  |  |  |  |  |  |
                   __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |
                __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
             __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
          __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
       __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
    __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
 __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |

Sample input:_

19 9 2 2 16 0 0 19 4 18 1 14 7 16 4 14 19 7 11

Sample output:

 __                   __                         __
|  |                 |  |   __                  |  |
|  |                 |  |  |  |                 |  |
|  |         __      |  |  |  |         __      |  |
|  |        |  |     |  |  |  |        |  |     |  |
|  |        |  |     |  |  |  |   __   |  |   __|  |
|  |        |  |     |  |  |  |  |  |  |  |  |  |  |
|  |        |  |     |  |  |  |  |  |  |  |  |  |  |
|  |        |  |     |  |  |  |  |  |  |  |  |  |  |   __
|  |        |  |     |  |  |  |  |  |  |  |  |  |  |  |  |
|  |__      |  |     |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |     |  |     |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |     |  |     |  |  |  |  |  |__|  |  |  |  |__|  |
|  |  |     |  |     |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |     |  |     |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |     |  |     |  |__|  |  |  |  |  |__|  |  |  |  |
|  |  |     |  |     |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |__ __|  |     |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |     |  |  |  |__|  |  |  |  |  |  |  |  |
|  |  |  |  |  |__ __|  |  |  |  |  |  |  |  |  |  |  |  |

Sample input:_

19 20 36 29 8 22 37 38 21 4 26 13 17 23 15 39 14 10 5 1 3 7 2 35 30 0 28 27 31 25 24 34 16 6 18 12 32 9 33 11

Sample output:

                                              __
                      __                     |  |
                   __|  |                    |  |
       __         |  |  |                    |  |
      |  |        |  |  |                    |  |                     __
      |  |        |  |  |                    |  |                    |  |                     __
      |  |        |  |  |                    |  |                    |  |                    |  |                  __
      |  |        |  |  |                    |  |                    |  |                    |  |            __   |  |
      |  |        |  |  |                    |  |                    |  |            __      |  |           |  |  |  |
      |  |        |  |  |                    |  |                    |  |__         |  |     |  |           |  |  |  |
      |  |__      |  |  |                    |  |                    |  |  |        |  |     |  |           |  |  |  |
      |  |  |     |  |  |                    |  |                    |  |  |   __   |  |     |  |           |  |  |  |
      |  |  |     |  |  |                    |  |                    |  |  |  |  |__|  |     |  |           |  |  |  |
      |  |  |     |  |  |      __            |  |                    |  |  |  |  |  |  |     |  |           |  |  |  |
      |  |  |     |  |  |     |  |           |  |                    |  |  |  |  |  |  |__   |  |           |  |  |  |
      |  |  |     |  |  |     |  |           |  |                    |  |  |  |  |  |  |  |__|  |           |  |  |  |
      |  |  |     |  |  |     |  |      __   |  |                    |  |  |  |  |  |  |  |  |  |           |  |  |  |
      |  |  |   __|  |  |     |  |     |  |  |  |                    |  |  |  |  |  |  |  |  |  |           |  |  |  |
      |  |  |  |  |  |  |__   |  |     |  |  |  |                    |  |  |  |  |  |  |  |  |  |           |  |  |  |
    __|  |  |  |  |  |  |  |  |  |     |  |  |  |                    |  |  |  |  |  |  |  |  |  |           |  |  |  |
 __|  |  |  |  |  |  |  |  |  |  |     |  |  |  |                    |  |  |  |  |  |  |  |  |  |           |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |     |  |  |  |                    |  |  |  |  |  |  |  |  |  |      __   |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |   __|  |  |  |                    |  |  |  |  |  |  |  |  |  |     |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |                    |  |  |  |  |  |  |  |  |  |__   |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |__|  |                    |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__                  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |__|  |  |  |  |  |                 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |                 |  |  |  |  |  |  |  |  |  |  |  |  |__|  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |                 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__               |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |              |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__|  |  |
|  |  |  |  |__|  |  |  |  |  |  |  |  |  |  |  |  |  |              |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |         __   |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |        |  |  |  |  |  |  |  |  |  |  |  |  |__|  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__      |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |__|  |  |  |  |  |  |  |  |  |     |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   __|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |__|  |  |  |  |  |  |  |  |  |  |  |  |  |  |

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs1090.04712016/01/02 03:08:170B / 46B / 58B
2jpl1170.04762014/04/10 20:30:230B / ?B / ?B
3yosio1250.03992014/03/27 14:04:030B / ?B / ?B
4yvl1270.03962014/03/22 07:11:340B / 62B / 55B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs1090.25942016/01/02 03:08:470B / 46B / 58B

Perl _

RankUserSizeTimeDateStatistics
1tails930.03802016/01/02 17:03:150B / 42B / 48B
2corruptio1460.03532015/02/05 17:54:030B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1leonid1280.08912014/05/28 13:35:340B / 70B / 54B
2twobit1300.10002014/03/07 08:08:130B / 68B / 55B
3hallvabo1300.10222014/03/10 08:40:130B / 64B / 54B
4rolf1330.10132014/03/06 07:20:470B / 68B / 57B
5xsot1330.09472014/08/11 20:22:150B / 69B / 57B
6zzxy2480.09542014/03/24 02:38:150B / 125B / 111B

Lua _

RankUserSizeTimeDateStatistics
1twobit1590.04582014/03/07 23:15:560B / 78B / 69B

J _

RankUserSizeTimeDateStatistics
1I., S.770.09622014/03/22 21:06:440B / 26B / 49B

C _

RankUserSizeTimeDateStatistics
1lpha1750.03232014/03/10 18:46:250B / 71B / 103B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1600.02372014/07/25 03:00:540B / 81B / 69B
2Icewing2000.03502014/07/09 05:54:360B / ?B / ?B
3Krushak2300.03762014/07/09 03:48:070B / ?B / ?B
4cympfh2750.04362014/03/07 12:52:080B / 154B / 98B

sed _

RankUserSizeTimeDateStatistics
1tails1440.07702016/01/03 01:07:000B / 54B / 60B
2%201440.04882016/01/19 13:54:560B / 56B / 65B

dc _

RankUserSizeTimeDateStatistics
1tails1760.19872016/01/04 01:05:040B / 131B / 45B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs3670.04972016/01/06 07:42:210B / 0B / 367B

GolfScript _

RankUserSizeTimeDateStatistics
1tails660.40222016/01/03 22:15:230B / 21B / 44B

goruby _

RankUserSizeTimeDateStatistics
1mitchs840.16492016/01/02 03:00:130B / 26B / 52B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails6610000
2JI., S.778571
3gorubymitchs847857
4Perltails937096
5Rubymitchs1096055
6Ruby2mitchs1096055
7Pythonleonid1285156
8sedtails1444583
9Luatwobit1594150
10Haskellhenkma1604125
11Clpha1753771
12dctails1763750
13Brainfuckmitchs3671798

return top