Ejection simplified

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

Eject characters from the square.
Simplified http://golf.shinh.org/p.rb?Ejection and then complexified it a bit.
--nn

Options

exec is denied

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

Sample input:_

#######
# R   #
#  R R#
#     #
#  RR #
#RR  R#
#######

Sample output:

#######
#     #R
#     #RR
#     #
#     #RR
#     #RRR
#######

Sample input:_

#########
# R# R  #
## RR R##
# #     #
#R R# # #
#  #R   #
# R  #R##
#    R ##
#########

Sample output:

#########
#       #R#R
#       ##RRR#
#       ##
#       #RR##
#       ##R
#       #R#R#
#       #R#
#########

Sample input:_

$$$$$$$$$$$
$R  $##  $$
$  #R  RR $
$#  $#   #$
$ R  R # $$
$$ $R  #  $
$    #$  #$
$ R# RR$  $
$$ #  $# R$
$$  R  # $$
$$$$$$$$$$$

Sample output:

$$$$$$$$$$$
$         $R$##$
$         $#RRR
$         $#$##
$         $RR#$
$         $$$R#
$         $#$#
$         $R#RR$
$         $$#$#R
$         $$R#$
$$$$$$$$$$$

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid470.04882011/06/06 16:09:400B / 14B / 29B
2kaki570.06462011/06/06 17:01:250B / 12B / 41B
3bk1e780.06942011/05/31 02:38:470B / 27B / 45B

Perl _

RankUserSizeTimeDateStatistics
1ySas410.03822011/06/01 21:31:240B / 21B / 15B
2mauke630.04742011/06/05 21:32:210B / ?B / ?B
3kiichigo670.03852011/06/01 19:59:511B / ?B / ?B
4tails (ySas)390.03262016/08/17 17:43:440B / 21B / 13B

Python _

RankUserSizeTimeDateStatistics
1twobit800.33342011/05/30 22:53:010B / 39B / 35B
2hallvabo800.08662011/05/31 00:14:180B / 39B / 35B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1170.18242011/06/02 03:01:440B / 64B / 47B
2dico_leque1250.12192011/06/06 04:08:310B / 58B / 61B
3kaki1080.09602013/03/25 06:37:280B / 57B / 48B

Common LISP _

RankUserSizeTimeDateStatistics
1youz1260.61322011/06/06 09:45:390B / 69B / 41B
2kozima1280.65992011/06/03 21:28:150B / 70B / 42B

JavaScript _

RankUserSizeTimeDateStatistics
1nn860.03892011/06/02 23:31:520B / 42B / 41B
2murky-satyr860.03882011/06/02 23:47:020B / 37B / 48B
3xulapp870.13842011/06/02 21:13:020B / 38B / 46B
4kaki890.04012011/06/02 11:39:240B / 38B / 49B
5kaki860.04532011/06/07 09:45:180B / 38B / 45B

Lua _

RankUserSizeTimeDateStatistics
1twobit950.07762011/05/30 23:41:440B / 49B / 40B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*1160.03602011/06/06 22:01:320B / 62B / 46B
2pooq1270.07112011/06/06 15:16:230B / 67B / 44B

J _

RankUserSizeTimeDateStatistics
1I., S.550.11592011/05/31 07:09:220B / 14B / 37B
2I., S.440.09422011/12/08 21:32:590B / 11B / 32B

K _

RankUserSizeTimeDateStatistics
1teebee(twobit)420.04262012/07/01 19:21:450B / 9B / 31B
2twobit430.06142012/06/23 10:03:550B / 11B / 29B

C _

RankUserSizeTimeDateStatistics
1nn970.05082011/06/06 18:23:280B / 51B / 46B
2kou990.04472011/06/06 10:37:340B / 54B / 45B
3koi1210.03012011/05/31 14:26:200B / 55B / 66B
4saru1240.04252011/05/31 23:56:030B / 62B / 61B
5nor1340.04502011/06/01 16:27:310B / ?B / ?B
6nor(symbol)1340.04052011/06/01 16:32:400B / 67B / 67B
7bk1e1390.04412011/05/31 02:29:160B / 72B / 65B
8Agano1540.04612011/06/01 09:55:200B / 73B / 80B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1490.04712011/06/06 21:59:570B / 98B / 43B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1540.04032011/06/02 06:25:180B / 88B / 63B
2*yuko*1510.04002011/12/03 02:06:350B / 85B / 62B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1440.52422011/06/05 11:52:340B / 81B / 61B

sed _

RankUserSizeTimeDateStatistics
1kaki480.03632011/06/02 11:36:280B / 13B / 25B
2eban500.04422011/06/02 10:15:480B / 8B / 35B
3bk1e660.04022011/05/31 14:18:270B / 15B / 41B

Bash _

RankUserSizeTimeDateStatistics
1eban530.03232011/06/02 14:03:360B / 12B / 36B

Befunge _

RankUserSizeTimeDateStatistics
1kaki950.09452011/06/05 05:56:410B / 22B / 63B

GolfScript _

RankUserSizeTimeDateStatistics
1narb300.13192011/06/06 00:04:190B / 3B / 26B
2nooodl460.13462011/06/02 01:45:110B / ?B / ?B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo38270.15472011/06/08 05:46:020B / 3B / 24B

Vim _

RankUserSizeTimeDateStatistics
1clock280.09242011/12/07 23:53:291B / 16B / 8B
2nn310.12262011/07/07 00:51:040B / 19B / 9B

goruby _

RankUserSizeTimeDateStatistics
1leonid430.13322011/06/06 17:08:410B / 10B / 30B
2kaki540.14432011/06/06 16:32:420B / 15B / 37B

Groovy _

RankUserSizeTimeDateStatistics
1nn846.32662011/06/04 16:52:290B / 46B / 34B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr9721.63662011/06/03 02:25:120B / 60B / 30B
2zakki10623.45052011/06/04 00:34:460B / 75B / 30B
3murky-satyr9023.70572011/06/14 02:48:140B / 60B / 28B
4zakki-29323.66282011/06/07 22:00:490B / 61B / 32B

Language Ranking_

RankLangUserSizeScore
1FlogScriptzzo382710000
2Vimclock289642
3GolfScriptnarb309000
4Perltails (ySas)396923
5Kteebee(twobit)426428
6gorubyleonid436279
7JI., S.446136
8Rubyleonid475744
9sedkaki485625
10Basheban535094
11Pythontwobit803375
12Groovynn843214
13JavaScriptnn863139
14Scalamurky-satyr903000
15Luatwobit952842
16Befungekaki952842
17Cnn972783
18Schemekaki1082500
19BASIC*yuko*1162327
20Common LISPyouz1262142
21Maximapooq1441875
22Pascal*yuko*1491812
23Fortran*yuko*1511788

return top