Directions of the star road

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

I am going to give you a line made up of *s that starts in the top left. Print out a series of |,/,\,- characters that correspond to the direction you take from each * to the next *.

Options

exec is denied

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

Sample input:_

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

Sample output:

|||\\\\///\\\\|||

Sample input:_

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

Sample output:

||--||---||||-----||-\/\/\\//\\////\\//\\/\

Sample input:_

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

Sample output:

|\-/|-\|///\-|||----|/-|-|--|\|--\\\\|/-\-/-|--||---/\/-\-/\

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid (embed)860.00062009/04/22 17:34:5334B / 20B / 32B
2leonid1020.11502009/04/24 09:55:260B / 42B / 57B

PHP _

RankUserSizeTimeDateStatistics
1o-cn1130.04552010/01/11 03:28:4851B / 38B / 23B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima(embed)1470.13392009/04/30 09:40:390B / 93B / 45B
2kozima2170.39952009/04/30 09:28:020B / 115B / 84B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1660.08922009/04/29 12:31:100B / 73B / 89B
2nn1610.12512009/05/02 14:15:170B / 68B / 89B

Lua _

RankUserSizeTimeDateStatistics
1zetamatta1740.03352009/04/25 19:12:550B / 14B / 157B
2pooq1630.00192010/08/31 09:48:240B / 14B / 149B

Xtal _

RankUserSizeTimeDateStatistics
1pooq1880.06872010/08/31 10:25:180B / 17B / 171B

J _

RankUserSizeTimeDateStatistics
1pooq890.22042009/04/26 17:18:050B / 39B / 49B

C _

RankUserSizeTimeDateStatistics
151b1290.02782009/04/26 15:35:246B / 56B / 67B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai (embed)1960.10222010/09/04 19:35:340B / 23B / 172B

Pascal _

RankUserSizeTimeDateStatistics
1uru1860.00052009/05/03 20:09:530B / 42B / 141B

Maxima _

RankUserSizeTimeDateStatistics
1pooq2020.50182011/08/16 00:45:220B / 25B / 177B

AWK _

RankUserSizeTimeDateStatistics
1nn1660.09772009/04/29 13:16:110B / 68B / 86B
2nn1630.17602009/05/02 14:19:570B / 60B / 87B

wake _

RankUserSizeTimeDateStatistics
1pooq1770.01172010/07/20 16:34:440B / 0B / 171B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1231.37802009/04/26 15:48:3658B / 33B / 30B
2yshl2271.30832009/04/26 15:48:190B / 161B / 35B

R _

RankUserSizeTimeDateStatistics
1pooq1770.90482011/02/06 16:37:520B / 11B / 166B

gs2 _

RankUserSizeTimeDateStatistics
1whio520.24392017/02/07 05:29:5132B / 12B / 8B

z80 _

RankUserSizeTimeDateStatistics
1kodera550.15112009/04/28 11:40:1226B / 9B / 18B

Groovy _

RankUserSizeTimeDateStatistics
1nn13511.37522009/04/29 11:12:440B / 66B / 68B
2nn13111.28262009/05/02 14:09:500B / 61B / 69B

Scala _

RankUserSizeTimeDateStatistics
1pooq16910.19442011/02/25 21:29:020B / 21B / 148B

Language Ranking_

RankLangUserSizeScore
1gs2whio5210000
2z80kodera559454
3Rubyleonid (embed)866046
4Jpooq895842
5PHPo-cn1134601
6Postscriptyshl(bin)1234227
7C51b1294031
8Groovynn1313969
9Common LISPkozima(embed)1473537
10JavaScriptnn1613229
11AWKnn1633190
12Luapooq1633190
13Scalapooq1693076
14wakepooq1772937
15Rpooq1772937
16Pascaluru1862795
17Xtalpooq1882765
18OCamlm.ukai (embed)1962653
19Maximapooq2022574

return top