Similarity Expansion

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

Expand each repeat notation in the given series of lines. A repeat notation is a single quote and denotes to fill the given space with characters from the above line.

Options

exec is denied

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

Sample input:_

Hello world.
  "   earth.

Sample output:

Hello world.
Hello earth.

Sample input:_

This is slightly more complex.
   "    another example.
Coding is addicting.
Coffee    "
Multiple notation attempt.
   "     wordings   "
Doubling   "
  "      reformat.
  "      usage.

Sample output:

This is slightly more complex.
This is another example.
Coding is addicting.
Coffee is addicting.
Multiple notation attempt.
Multiple wordings attempt.
Doubling wordings attempt.
Doubling reformat.
Doubling usage.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid470.02292012/07/18 06:55:210B / 13B / 31B
2clock520.02342012/07/18 06:59:000B / 16B / 33B
3leonid450.03992012/07/19 08:10:550B / 13B / 29B

Perl _

RankUserSizeTimeDateStatistics
1tails460.02772012/07/18 00:38:320B / 24B / 20B
2test1460.03132012/07/18 06:04:340B / ?B / ?B
3nfouille700.14672012/07/17 18:17:410B / ?B / ?B
4test1(tails)450.03282012/07/19 08:28:300B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1leonid860.03832012/07/19 06:18:180B / 40B / 42B
2hallvabo (no import)880.04972012/07/18 04:06:460B / 43B / 40B
3hallvabo940.05382012/07/13 14:34:230B / 58B / 30B
4twobit1030.03142012/07/18 11:41:180B / 44B / 55B
5twobit (no import)1030.04812012/07/18 11:42:050B / 44B / 55B
6recursive1050.03912012/07/18 04:21:560B / 60B / 36B
7Puzzlet Chung1080.12802012/07/15 13:10:270B / 63B / 37B
8recursive1000.04642012/07/20 01:08:100B / 59B / 33B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr830.03222012/07/16 07:46:170B / 50B / 31B
20mg830.03362012/07/16 11:37:180B / 52B / 30B
30mg(murky-satyr)790.04802012/07/19 14:05:490B / 51B / 27B
4clock(murky-satyr)800.17832012/07/19 08:30:530B / 50B / 29B

Lua _

RankUserSizeTimeDateStatistics
1clock960.02592012/07/17 18:55:040B / 52B / 43B
2twobit1020.03142012/07/18 04:33:390B / 50B / 48B

J _

RankUserSizeTimeDateStatistics
1I., S.(no load)760.07052012/07/05 20:21:160B / 27B / 44B
2I., S.770.10002012/07/05 12:56:360B / 27B / 46B

K _

RankUserSizeTimeDateStatistics
1twobit460.02272012/07/08 05:17:290B / 11B / 35B

C _

RankUserSizeTimeDateStatistics
1nu840.02132012/07/09 02:47:530B / 44B / 40B
2kcm17001220.02142012/07/13 16:51:120B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1080.02762012/07/07 09:48:570B / 53B / 51B

sed _

RankUserSizeTimeDateStatistics
1clock810.03082012/07/18 04:42:480B / 19B / 48B
2tails810.02282012/07/18 23:15:140B / 14B / 60B
3tails (clock)790.02592012/07/19 21:42:500B / 18B / 48B

GolfScript _

RankUserSizeTimeDateStatistics
1tails530.06802012/07/17 21:49:270B / 19B / 34B
2tails (tails)510.06692012/07/20 23:12:440B / 18B / 33B

Vim _

RankUserSizeTimeDateStatistics
1clock330.03612012/07/17 19:15:263B / 20B / 9B

Language Ranking_

RankLangUserSizeScore
1Vimclock3310000
2Rubyleonid457333
3Perltest1(tails)457333
4Ktwobit467173
5GolfScripttails (tails)516470
6JI., S.(no load)764342
7JavaScript0mg(murky-satyr)794177
8sedtails (clock)794177
9Cnu843928
10Pythonleonid863837
11Luaclock963437
12Haskellhenkma1083055

return to the top page