compress letter rectangles

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

Inverse of http://golf.shinh.org/p.rb?grow+letter+rectangles

The input is formed from an initial letter (in the upper left), by successively adding either a row (to the bottom) or a column (to the right) of a new letter.

The output is the initial letter, then for each row or column added, the direction (> for columns, v for rows) and letter of that row/column.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

abcfgjlmpqrstuxy
dddfgjlmpqrstuxy
eeefgjlmpqrstuxy
hhhhhjlmpqrstuxy
iiiiijlmpqrstuxy
kkkkkklmpqrstuxy
nnnnnnnnpqrstuxy
oooooooopqrstuxy
vvvvvvvvvvvvvvxy
wwwwwwwwwwwwwwxy
zzzzzzzzzzzzzzzz

Sample output:

a>b>cvdve>f>gvhvi>jvk>l>mvnvo>p>q>r>s>t>uvvvw>x>yvz

Sample input:_

zVtqSEnmCQKydvpUwbGPihJslHgYNjeDfkc
ooooSEnmCQKydvpUwbGPihJslHgYNjeDfkc
ZZZZSEnmCQKydvpUwbGPihJslHgYNjeDfkc
RRRRRRRRCQKydvpUwbGPihJslHgYNjeDfkc
XXXXXXXXXQKydvpUwbGPihJslHgYNjeDfkc
TTTTTTTTTTTydvpUwbGPihJslHgYNjeDfkc
rrrrrrrrrrrydvpUwbGPihJslHgYNjeDfkc
AAAAAAAAAAAydvpUwbGPihJslHgYNjeDfkc
uuuuuuuuuuuudvpUwbGPihJslHgYNjeDfkc
LLLLLLLLLLLLLLLLLLLLLLLslHgYNjeDfkc
MMMMMMMMMMMMMMMMMMMMMMMMlHgYNjeDfkc
aaaaaaaaaaaaaaaaaaaaaaaaaHgYNjeDfkc
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBjeDfkc
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWjeDfkc
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxjeDfkc
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIeDfkc
FFFFFFFFFFF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B / 17B / 27B
2rotary-o500.03572017/08/27 19:01:410B / 17B / 27B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs480.21652017/08/21 18:17:060B / 17B / 25B
2rotary-o480.17472017/08/27 19:01:300B / 17B / 25B

Perl _

RankUserSizeTimeDateStatistics
1mitchs400.05602017/08/21 18:13:150B / 13B / 24B
2tails400.03492017/08/22 12:10:310B / 13B / 24B
3rotary-o400.03342017/08/27 19:01:540B / 13B / 24B

Python _

RankUserSizeTimeDateStatistics
1mitchs810.07452017/08/21 18:11:230B / 40B / 38B
2dianne1070.07222017/08/23 16:06:530B / 53B / 47B
3lynn1250.07122017/08/20 20:13:010B / 65B / 49B
4rolf2720.07472017/08/29 04:57:470B / 142B / 97B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs790.11352017/08/21 18:36:520B / 37B / 40B
2mitchs (alt)980.11472017/08/21 18:40:260B / 49B / 43B
3dianne1080.13722017/08/23 16:10:030B / 53B / 49B
4lynn1320.12052017/08/20 20:50:300B / 69B / 53B
5rrika1400.19692017/08/20 20:47:440B / 65B / 68B

Perl6 _

RankUserSizeTimeDateStatistics
1tails554.60822017/08/29 14:02:540B / 25B / 28B

C _

RankUserSizeTimeDateStatistics
1tails880.03152017/08/28 10:33:580B / 49B / 39B
2nai910.03132017/08/25 16:36:193B / 46B / 42B

Haskell _

RankUserSizeTimeDateStatistics
1henkma800.03412017/08/26 12:54:140B / 46B / 30B
2dianne1000.02602017/08/23 13:51:240B / 50B / 46B
3yuki1180.03522017/08/24 17:14:050B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1mitchs450.05862017/08/21 10:09:130B / 13B / 27B
2tails450.58092017/08/21 16:02:560B / 12B / 28B
3mitchs (alt)450.57322017/08/23 13:10:540B / 12B / 28B
4kimiyuki570.04182017/08/21 12:17:550B / 16B / 34B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails750.38832017/08/22 14:04:400B / 30B / 35B

GolfScript _

RankUserSizeTimeDateStatistics
1tails180.04992017/08/25 14:14:130B / 4B / 14B

gs2 _

RankUserSizeTimeDateStatistics
1tails150.24402017/08/25 14:32:545B / 6B / 3B
2mitchs150.18942017/08/26 18:17:158B / 3B / 4B
3mitchs (tails)140.18052017/09/02 19:12:225B / 6B / 3B

goruby _

RankUserSizeTimeDateStatistics
1mitchs390.06382017/08/21 22:36:060B / 7B / 29B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o947.08802017/08/21 01:21:520B / 59B / 31B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs (tails)1410000
2GolfScripttails187777
3gorubymitchs393589
4Perlmitchs403500
5sedmitchs453111
6Ruby2mitchs482916
7Rubymitchs502800
8Perl6tails552545
9Bash (builtins)tails751866
10Python3mitchs791772
11Haskellhenkma801750
12Pythonmitchs811728
13Ctails881590
14Scalarotary-o941489

return top