fish simulation

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

STEP 1) each big fish eats smaller fishes to the right and stop if no small fishes available on the right,
STEP 2) leftmost big fish eats all big fishes to the right

Options

exec is denied

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

Sample input:_

~~~[0]B@~~~~4:}~~7:}~~~~0:}~~~~

Sample output:

~~~~~~~...~~...~~~~...[11]B@~~~~

Sample input:_

~~[0]B@~~22:)~~~~[0]B@~~~5:}~~~

Sample output:

~~~~....~~~~~~~...,,,,,[27]B@~~~

Sample input:_

~~~[0]B@~~~[0]B@~~~~1:}~~11:)~~[0]B@~~9:}~~0:>~~~~33:)~~~

Sample output:

~~~~~~~~~~...~~....,,,,,,~~~~...~~...~~~~....,,,,,,[54]B@~~~

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1jpl1240.04672013/02/07 00:18:220B / ?B / ?B
2brx(jpl+clock)1160.04312013/02/14 01:09:050B / 32B / 81B
3clock(jpl)1180.04812013/02/14 00:57:130B / 32B / 83B
4brx(jpl)1220.03932013/02/14 01:06:390B / 34B / 86B

Perl _

RankUserSizeTimeDateStatistics
1brx1080.03452013/02/13 06:51:370B / 26B / 79B
2BioFALSE1710.03442013/01/31 03:42:013B / 55B / 110B
3BioFALSE (author)1770.03822013/01/31 03:35:163B / 54B / 117B
4brx(jpl)1060.03742013/02/14 00:53:500B / 26B / 77B

Python _

RankUserSizeTimeDateStatistics
1rolf2240.11712013/02/06 05:13:440B / 98B / 119B

Io _

RankUserSizeTimeDateStatistics
1pooq1620.21452013/02/12 12:37:330B / 32B / 129B

Vim _

RankUserSizeTimeDateStatistics
1clock620.06092013/02/12 22:37:335B / 36B / 20B

Language Ranking_

RankLangUserSizeScore
1Vimclock6210000
2Perlbrx(jpl)1065849
3Rubybrx(jpl+clock)1165344
4Iopooq1623827
5Pythonrolf2242767

return top