Diamond cards

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

Another diamond problem.

Options

exec is denied

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

Sample input:_

10
9
8
7
6
5
4
3
2
1

Sample output:

-----------------
  *           *  
 ***         *** 
  *     *     *  
       ***       
  *     *     *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *     *     *  
       ***       
  *     *     *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *     *     *  
       ***       
  *     *     *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
        *        
       ***       
        *        
  *           *  
 ***         *** 
  *           *  
        *        
       ***       
        *        
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
        *        
       ***       
        *        
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
                 
                 
                 
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
-----------------
        *        
       ***       
        *        
                 
                 
                 
                 
                 
                 
                 
                 
                 
        *        
       ***       
        *        
-----------------
                 
                 
                 
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
                 
                 
                 
-----------------

Sample input:_

1
2
3
4
5
6
7
8
9
10

Sample output:

-----------------
                 
                 
                 
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
                 
                 
                 
-----------------
        *        
       ***       
        *        
                 
                 
                 
                 
                 
                 
                 
                 
                 
        *        
       ***       
        *        
-----------------
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
                 
                 
                 
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
        *        
       ***       
        *        
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
        *        
       ***       
        *        
  *           *  
 ***         *** 
  *           *  
        *        
       ***       
        *        
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *     *     *  
       ***       
  *     *     *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *     *     *  
       ***       
  *     *     *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *     *     *  
       ***       
  *     *     *  
 ***         *** 
  *           *  
-----------------

Sample input:_

3
1
4
1
5
9
2
6
5
3

Sample output:

-----------------
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
-----------------
                 
                 
                 
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
                 
                 
                 
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
                 
                 
                 
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
                 
                 
                 
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
                 
                 
                 
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *     *     *  
       ***       
  *     *     *  
 ***         *** 
  *           *  
                 
  *           *  
 ***         *** 
  *           *  
-----------------
        *        
       ***       
        *        
                 
                 
                 
                 
                 
                 
                 
                 
                 
        *        
       ***       
        *        
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
  *           *  
 ***         *** 
  *           *  
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
  *           *  
 ***         *** 
  *           *  
-----------------
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
                 
                 
                 
        *        
       ***       
        *        
-----------------

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1ksk1470.04532009/10/24 14:46:2826B / 58B / 53B
2hide241770.04122009/10/23 12:43:4529B / 76B / 59B
3shinh1840.05362009/10/23 03:46:2838B / 79B / 61B
4eban2510.04152009/10/21 14:09:500B / 98B / 145B

Perl _

RankUserSizeTimeDateStatistics
1tybalt891440.06652009/10/21 03:47:0615B / ?B / ?B
2yibe1780.05312009/10/20 22:31:0620B / 69B / 74B

Python _

RankUserSizeTimeDateStatistics
1Mark Byers1520.07212009/10/26 00:19:0462B / 59B / 29B

PHP _

RankUserSizeTimeDateStatistics
1o-cn1800.01262010/02/27 13:12:5494B / 45B / 38B

Scheme _

RankUserSizeTimeDateStatistics
1amanatto6390.75362009/10/27 17:10:090B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima3461.15032009/10/23 18:15:470B / 92B / 217B

JavaScript _

RankUserSizeTimeDateStatistics
1nn2390.85062009/10/25 14:34:050B / 111B / 126B

C _

RankUserSizeTimeDateStatistics
151b1930.02912009/10/24 23:52:3311B / 95B / 84B

D _

RankUserSizeTimeDateStatistics
151b2510.05422009/10/25 18:58:060B / 153B / 93B

Haskell _

RankUserSizeTimeDateStatistics
1Lost_dog2620.11862009/10/25 04:44:420B / 131B / 108B

AWK _

RankUserSizeTimeDateStatistics
1nn2490.27972009/10/25 14:35:270B / 127B / 118B

Bash _

RankUserSizeTimeDateStatistics
1eban1780.39192009/10/22 14:07:4493B / 57B / 24B

Postscript _

RankUserSizeTimeDateStatistics
1Mark Byers1511.08602009/10/27 04:50:2990B / 42B / 18B
2yshl(bin)1761.28632009/10/31 11:10:36102B / 43B / 30B
3yshl3021.30662009/10/31 11:09:520B / 193B / 87B

Vim _

RankUserSizeTimeDateStatistics
1nn2691.59362009/10/25 19:20:5912B / 148B / 103B

Groovy _

RankUserSizeTimeDateStatistics
1nn25111.37022009/10/25 14:05:100B / 133B / 107B
2murky-satyr2424.32512009/12/03 01:39:520B / 128B / 101B

Language Ranking_

RankLangUserSizeScore
1Perltybalt8914410000
2Rubyksk1479795
3PostscriptMark Byers1519536
4PythonMark Byers1529473
5Basheban1788089
6PHPo-cn1808000
7C51b1937461
8JavaScriptnn2396025
9Groovymurky-satyr2425950
10AWKnn2495783
11D51b2515737
12HaskellLost_dog2625496
13Vimnn2695353
14Common LISPkozima3464161
15Schemeamanatto6392253

return top