Move To Front Decode

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

Implement the inverse Move To Front algorithm for numbers 0-9.

Options

exec is denied

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

Sample input:_

0125458384400555550065632118731381153839399785557905664546824364147967877775666345656656666365366666576468765768858675776767730058226122417141311100126574600011011111108102222212112100000000000000003734777577755677774566457162713737855664613546585762512352455557538373673545358565366552452030401147526745700447563414548656627895991757538919

Sample output:

0125348573444285733312432326838202048509871239875663295738035820236457902367590763295067329756903275940738290576493026579403244478479749295979292999273402555525525252556552652625256555555555555555550962734950634729507432056576965493865748987643927567376596327598350865726058674028456026486622002043845730666572347572649375270815646287523930

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid370.01742013/02/05 05:10:320B / 19B / 16B
2clock370.02512013/02/05 05:27:170B / 22B / 13B
3Histocrat700.01222013/01/31 05:51:221B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tails380.02422013/02/10 00:07:510B / 20B / 18B
2teebee380.01872013/02/10 00:18:140B / 20B / 18B
3brx440.01202013/02/12 07:10:230B / 18B / 26B
4brx(440.01182013/02/12 07:52:020B / 12B / 32B
5ninjalj560.01642013/02/01 20:55:410B / 21B / 35B

Python _

RankUserSizeTimeDateStatistics
1leonid740.01852013/02/12 05:08:160B / 44B / 25B
2clock740.01772013/02/13 22:51:080B / 44B / 25B
3teebee750.03162013/02/10 02:59:410B / 42B / 26B
4hallvabo860.01632013/01/31 07:22:210B / 49B / 30B
5rolf860.02282013/02/01 07:16:010B / 49B / 31B

Io _

RankUserSizeTimeDateStatistics
1pooq970.08562013/02/08 12:23:040B / 64B / 28B

JavaScript _

RankUserSizeTimeDateStatistics
1clock730.03292013/02/09 17:42:510B / 49B / 21B
2teebee730.02702013/02/09 21:26:310B / 49B / 21B

Lua _

RankUserSizeTimeDateStatistics
1clock810.01192013/02/13 21:30:530B / 53B / 27B
2pooq980.01662013/02/10 12:48:190B / 55B / 42B

SNOBOL _

RankUserSizeTimeDateStatistics
1clock1040.01292013/02/09 18:01:240B / 54B / 18B
2ninjalj1070.01232013/02/06 00:01:300B / 54B / 23B

Icon _

RankUserSizeTimeDateStatistics
1clock820.00842013/02/13 22:26:470B / 50B / 27B

BASIC _

RankUserSizeTimeDateStatistics
1clock870.01272013/02/13 21:23:420B / 48B / 39B
2pooq940.00742013/02/10 09:34:440B / 50B / 39B

J _

RankUserSizeTimeDateStatistics
1pooq500.03262013/02/08 20:16:140B / 23B / 25B

C _

RankUserSizeTimeDateStatistics
1nu870.01562013/02/13 23:53:420B / 44B / 43B
2david_werecat1020.01422013/01/31 01:49:540B / 56B / 45B

Haskell _

RankUserSizeTimeDateStatistics
1henkma720.01842013/01/31 21:52:440B / 37B / 33B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1070.20662013/02/09 00:18:040B / 72B / 32B

AWK _

RankUserSizeTimeDateStatistics
1teebee740.01772013/02/10 20:15:330B / 41B / 31B
2ninjalj830.01262013/02/01 21:13:110B / 46B / 35B

sed _

RankUserSizeTimeDateStatistics
1tails1140.07562013/02/09 16:14:070B / 38B / 64B

xgawk _

RankUserSizeTimeDateStatistics
1teebee740.01932013/02/10 20:22:380B / 41B / 31B
2ninjalj830.01662013/02/01 21:12:370B / 46B / 35B

Befunge _

RankUserSizeTimeDateStatistics
1ninjalj500.02772013/02/16 11:21:400B / 25B / 21B

GolfScript _

RankUserSizeTimeDateStatistics
1tails170.03702013/02/09 15:39:110B / 5B / 12B

Vim _

RankUserSizeTimeDateStatistics
1clock470.22802013/02/13 20:29:163B / 36B / 5B

Groovy _

RankUserSizeTimeDateStatistics
1clock501.03442013/02/09 19:48:300B / 29B / 20B
2teebee501.25442013/02/09 19:49:020B / 29B / 20B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails1710000
2Rubyleonid374594
3Perltails384473
4Vimclock473617
5Jpooq503400
6Groovyclock503400
7Befungeninjalj503400
8Haskellhenkma722361
9JavaScriptclock732328
10AWKteebee742297
11xgawkteebee742297
12Pythonleonid742297
13Luaclock812098
14Iconclock822073
15BASICclock871954
16Cnu871954
17Iopooq971752
18SNOBOLclock1041634
19Maximapooq1071588
20sedtails1141491

return top