hexagon 2nd fixed

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 hexagon.


I'm sorry for making a mistake many times. It corrected it.

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:_

7

Sample output:

                   __
                __/  \__
             __/  \__/  \__
          __/  \__/  \__/  \__
       __/  \__/  \__/  \__/  \__
    __/  \__/  \__/  \__/  \__/  \__
 __/  \__/  \__/  \__/  \__/  \__/  \__
/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/
/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/
/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/
/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/
/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/
/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/
/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/
   \__/  \__/  \__/  \__/  \__/  \__/
      \__/  \__/  \__/  \__/  \__/
         \__/  \__/  \__/  \__/
            \__/  \__/  \__/
               \__/  \__/
                  \__/

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1primo(luck)810.06542009/04/25 22:26:310B / 36B / 40B
2primo830.03382009/04/24 22:54:590B / 38B / 40B
3leonid840.04842009/04/25 21:01:090B / 37B / 41B

Python _

RankUserSizeTimeDateStatistics
1primo920.21142009/04/21 02:04:490B / 43B / 44B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1880.20362009/04/23 12:39:130B / 60B / 104B
2youz2070.21442009/04/21 15:38:430B / 63B / 118B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1310.08882009/04/20 13:25:250B / 65B / 64B

J _

RankUserSizeTimeDateStatistics
1pooq1040.18522009/04/25 20:13:540B / 23B / 77B
2pooq1010.19672009/04/27 17:15:150B / 22B / 75B

C _

RankUserSizeTimeDateStatistics
151b1540.08022009/04/23 23:29:110B / 70B / 82B
2mht2000.07322009/04/26 03:16:180B / 88B / 108B
3G.w.3010.07532009/04/20 19:56:250B / 148B / 150B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1520.14562009/04/20 06:26:280B / ?B / ?B

Java _

RankUserSizeTimeDateStatistics
1Patashu2550.60622009/04/25 22:21:000B / ?B / ?B
2primo2631.65182009/04/25 22:59:160B / 159B / 95B
3Patashu2360.33522010/02/24 12:31:350B / 140B / 91B

AWK _

RankUserSizeTimeDateStatistics
1nn1240.11402009/04/25 11:15:020B / 56B / 64B

sed _

RankUserSizeTimeDateStatistics
1mitchs (%20)1420.03772016/01/04 13:57:210B / 39B / 82B
2%201480.03392016/01/04 02:16:180B / 39B / 86B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1471.14082009/04/23 23:37:2459B / 68B / 15B
2yshl2701.11672009/04/23 23:37:140B / 181B / 22B

GolfScript _

RankUserSizeTimeDateStatistics
1strager890.26972009/10/24 13:29:470B / 17B / 62B

gs2 _

RankUserSizeTimeDateStatistics
1whio580.25692017/02/07 07:04:0824B / 17B / 14B

Vim _

RankUserSizeTimeDateStatistics
1nn1060.97292009/10/24 12:32:087B / 64B / 31B

Groovy _

RankUserSizeTimeDateStatistics
1nn13010.96732009/04/20 13:17:500B / 64B / 62B

Language Ranking_

RankLangUserSizeScore
1gs2whio5810000
2Rubyprimo(luck)817160
3GolfScriptstrager896516
4Pythonprimo926304
5Jpooq1015742
6Vimnn1065471
7AWKnn1244677
8Groovynn1304461
9JavaScriptnn1314427
10sedmitchs (%20)1424084
11Postscriptyshl(bin)1473945
12Haskellnotogawa1523815
13C51b1543766
14Common LISPkozima1883085
15JavaPatashu2362457

return to the top page