A Japanese counting system

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

A Japanese Kanji character "sei" (below) is often used to count objects or something, for example the number of votes.

*******
*
* ***
* *
*******

The character is compirsed of 5 bars and each bar is used to count one. So the following corresponds to 1, 2, 3, 4 and 5.

******* ******* ******* ******* *******
* * * *
* *** * *** * ***
* * * * * *
*******

Your task is to convert a number in each line to "sei" characters representing the number.

--nn

Options

exec is denied

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

Sample input:_

1
2
3
4
5

Sample output:

*******
       
       
       
       
*******
   *   
   *   
   *   
       
*******
   *   
   *** 
   *   
       
*******
   *   
 * *** 
 * *   
       
*******
   *   
 * *** 
 * *   
*******

Sample input:_

10
12
14
15

Sample output:

******* *******
   *       *   
 * ***   * *** 
 * *     * *   
******* *******
******* ******* *******
   *       *       *   
 * ***   * ***     *   
 * *     * *       *   
******* *******        
******* ******* *******
   *       *       *   
 * ***   * ***   * *** 
 * *     * *     * *   
******* *******        
******* ******* *******
   *       *       *   
 * ***   * ***   * *** 
 * *     * *     * *   
******* ******* *******

Sample input:_

3
8
10

Sample output:

*******
   *   
   *** 
   *   
       
******* *******
   *       *   
 * ***     *** 
 * *       *   
*******        
******* *******
   *       *   
 * ***   * *** 
 * *     * *   
******* *******

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1yvl1240.05222012/01/10 06:31:3721B / 47B / 49B
2jingoro1320.09072012/01/10 03:22:3920B / 48B / 59B

Perl _

RankUserSizeTimeDateStatistics
1tybalt891240.05102011/12/29 02:18:1520B / ?B / ?B
2tails1240.05872012/01/08 05:18:427B / 49B / 65B
3addps4cat1880.09452012/01/02 20:38:163B / 95B / 81B
4Hem2240.06002012/01/05 13:23:460B / 93B / 100B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1490.07142011/12/29 01:24:110B / 78B / 67B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1570.07962011/12/30 03:30:360B / 81B / 74B

J _

RankUserSizeTimeDateStatistics
1I., S.880.09102012/01/04 21:11:230B / 30B / 53B
2I., S.870.15582012/01/24 21:01:580B / 29B / 53B

C _

RankUserSizeTimeDateStatistics
1nn1670.04472012/01/08 01:49:3728B / 69B / 70B
2allemo1750.04792011/12/29 05:00:3540B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1rst761720.04552012/01/02 22:13:450B / 88B / 80B

sed _

RankUserSizeTimeDateStatistics
1clock1830.04002012/01/10 22:03:120B / 47B / 103B
2lvogel2040.13892012/01/10 20:21:222B / ?B / ?B
3clock1790.04452012/01/10 22:26:050B / 46B / 99B

GolfScript _

RankUserSizeTimeDateStatistics
1tails830.10892012/01/08 08:52:2125B / 16B / 40B

Vim _

RankUserSizeTimeDateStatistics
1clock760.15072012/01/04 23:08:408B / 43B / 20B
2nn950.12152012/01/09 00:17:063B / 69B / 19B

Groovy _

RankUserSizeTimeDateStatistics
1hakusui1363.52732011/12/30 15:11:010B / 67B / 59B
2nn1584.71732012/01/08 22:50:140B / 90B / 64B

Language Ranking_

RankLangUserSizeScore
1Vimclock7610000
2GolfScripttails839156
3JI., S.878735
4Perltybalt891246129
5Rubyyvl1246129
6Groovyhakusui1365588
7Pythonhallvabo1495100
8JavaScriptnn1574840
9Cnn1674550
10Haskellrst761724418
11sedclock1794245

return to the top page