Koch Snowflake

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

Check out here: http://en.wikipedia.org/wiki/Koch_snowflake

Implement Koch snowflake for a given number of iteration -- Deb

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

2

Sample output:

__/\__
\    /
/_  _\
  \/

Sample input:_

3

Sample output:

      __/\__
      \    /
__/\__/    \__/\__
\                /
/_              _\
  \            /
__/            \__
\                /
/_  __      __  _\
  \/  \    /  \/
      /_  _\
        \/ 

Sample input:_

4

Sample output:

                        __/\__                        
                        \    /                        
                  __/\__/    \__/\__                  
                  \                /                  
                  /_              _\                  
                    \            /                    
      __/\__      __/            \__      __/\__      
      \    /      \                /      \    /      
__/\__/    \__/\__/                \__/\__/    \__/\__
\                                                    /
/_                                                  _\
  \                                                /  
__/                                                \__
\                                                    /
/_  __                                          __  _\
  \/  \                                        /  \/  
      /_                                      _\      
        \                                    /        
      __/                                    \__      
      \                                        /      
__/\__/                                        \__/\__
\                                                    /
/_                                                  _\
  \                                                /  
__/                                                \__
\                                                    /
/_  __      __  __                  __  __      __  _\
  \/  \    /  \/  \                /  \/  \    /  \/  
      /_  _\      /_              _\      /_  _\      
        \/          \            /          \/        
                  __/            \__                  
                  \                /                  
                  /_  __      __  _\                  
                    \/  \    /  \/                    
                        /_  _\                        
                          \/                          

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1@tttttanaka22220.07772012/04/01 01:49:330B / 1B / 325B

Perl _

RankUserSizeTimeDateStatistics
1line ending is inconsistent between 2nd and 3rd testcases22370.01472011/03/30 02:53:280B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1twobit3110.10632011/04/29 21:41:040B / 129B / 163B

J _

RankUserSizeTimeDateStatistics
1I., S.2340.22702012/05/29 06:40:150B / 102B / 108B

C _

RankUserSizeTimeDateStatistics
1koi3510.03052011/05/22 21:25:350B / 161B / 188B

bc _

RankUserSizeTimeDateStatistics
1McBusLuck22130.03522020/08/06 01:32:050B / 16B / 325B

GolfScript _

RankUserSizeTimeDateStatistics
1nooodl9570.16032011/04/19 23:44:5949B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1JI., S.23410000
2Pythontwobit3117524
3Ckoi3516666
4GolfScriptnooodl9572445
5bcMcBusLuck22131057
6Ruby@tttttanaka22221053
7Perlline ending is inconsistent between 2nd and 3rd testcases22371046

return to the top page