Encoder decoder

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

abcdefg ==> ENCODE
acegfdb

abcdefgh ==> ENCODE
aceghfdb

that is:

take two chars, add to string, move pointer to middle.

accept command 'encode' or 'decode' as first line of input

Options

exec is denied

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

Sample input:_

encode
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean
laoreet nunc non massa. Nulla eget urna ac nisl faucibus
pharetra. Vestibulum lacinia porttitor eros. Fusce erat metus,
fermentum a, semper in, nonummy ac, tortor. Aliquam nec
orci. Vivamus turpis neque, laoreet vel, mollis sed, rutrum nec,
mauris. Pellentesque eros orci, mollis ac, venenatis id, iaculis
in, orci. Pellentesque pharetra felis et tortor. Nunc euismod,
pede a dignissim eleifend, nulla turpis ultrices leo, euismod
vulputate turpis neque ut diam. Praesent ligula. Sed suscipit
enim in sem. Curabitur sit amet arcu. Pellentesque consectetuer,
eros pharetra egestas tristique, neque nisi auctor nulla, eget
volutpat elit dui quis tortor. In sem. Fusce rhoncus ante ac
nunc. Donec non velit at leo pulvinar porttitor.

Curabitur luctus congue odio. Vestibulum adipiscing, urna ut
mattis dapibus, nibh enim interdum felis, in gravida pede pede
eget tellus. Donec nec urna. Pellentesque dictum. Nulla sit amet
felis id diam malesuada ultrices. Cum sociis natoque penatibus et
magnis dis parturient montes, nascetur ridiculus mus. Suspendisse
ac massa. Mauris nec lorem. Morbi ut mi. Nulla facilisi. Nullam
nisi neque, vehicula luctus, blandit et, aliquam in, nibh. Fusce
nibh. Nulla ullamcorper lacus at mi. Nam pretium. Suspendisse
faucibus nisl eu leo. Sed nunc justo, porttitor at, sollicitudin
et, tempor et, lectus.

Mauris accumsan, justo non posuere ullamcorper, tellus mauris
blandit nibh, luctus ultricies lacus tortor ac velit. Proin
sagittis orci vel risus. Pellentesque feugiat lobortis felis. Sed
ultrices, turpis non tempor dictum, erat lacus consequat tortor,
sit amet egestas magna sem non dui. Donec consequat lectus nec
ligula. Cras ullamcorper pede eu metus. Vivamus
fringilla. Praesent sed quam. Donec turpis turpis, condimentum
ut, tincidunt at, consequat ut, quam. Curabitur et sem. Phasellus
lectus. Vestibulum ornare venenatis velit. Nulla
egestas. Praesent gravida. Ut tincidunt dolor id odio. Vivamus
lacinia.

Sample output:

Lrmismdlrstae,cnette dpsigei.Ana
are ucnnmsa ul gtun cns acbspaer.Vsiuu aii otio rs uc rtmts
emnu ,sme n oum c otr lqa e
ri iau upsnqe are e,mli e,rtu e,mui.Pletsu rsoc,mli c eeai d aui
n ri elneqepaer ei ttro.Nn uso,pd  insi lied ul upsutie e,eimdvluaetri eu tda.Pasn iua e ucptei nsm uaiu i mtac.Pletsu osceur
rspaer gsa rsiu,nqens utrnla gtvlta ltdiqi otr nsm uc hnu nea
uc oe o ei tloplia otio.
uaiu utscnu do etblmaiicn,un tmti aiu,nb nmitru ei,i rvd eepd
gttlu.Dncncun.Pletsu itm ul i mtflsi immlsaautie.Cmsci aou eaiu tmgi i atretmne,nseu iiuu u.Ssedsea as.Mui e oe.Mriu i ul aiii ulmns eu,vhcl uts lni t lqa n ih uc
ih ul lacre au tm.Nmpeim upnis
acbsns ulo e ucjso otio t olctdne,tmo t ets
Mui cusn ut o our lacre,tlu arsbadtnb,lcu lrce au otra ei.Ponsgti rivlrss elneqefuitlbri ei.Sdutie,tri o eprdcu,ea au osqa otr
i mteetsmgasmnndi oe osqa etsnclgl.Ca lacre eee eu.Vvmsfigla reetsdqa.Dnctri ups odmnu
t icdn t osqa t um uaiu tsm hslu
ets etblmonr eeai ei.Nlaeets reetgaia ttniutdlri do iau
aii.anclsmvV.iod oo ndci U.dvr nsaP.asg
lu tlvstnnvear uuisV.uclsleaP.e ertbrC.aq,utuenc,atuint,umteinc,irtspu eo mu e nsaP.linr
uai stmu dprpomlusr aui
e ucltuenccnD.u o e na asg eats,orttuencscltr mti omtnnspu scrl
e slfstoo age ustelP.ui e costia
ir tlvc ortsclsiitustu hi inl
iumsle rpomlueespnnosj,amcasra
.ucl,erpe t
iuiils,arttrp,tu nndS.e eli uiufesdesS.utr a i asclrpomlualN.bnesF.bn,imuia,etdab,uclauie eqnii
alN.slcfalN.mt bo mrlcnsra asmc
sinpu smslcdrrtca sto niurpsdsna
esbtnpeqtnsio u scrl duea add ie
eatsalN.ucdeqenle ar e eo sle eeee dpaiagn slfmden iehi sbpdsta
uar gispd uuisV.ioego uclrtbrC
rttrprnvu e atlvnncnD.nnc tascoresF.e I.ortsu u ietpuo
ee,lu ocaii ue eqtitsteeatrh oe,ettenceqenle ur eatsrtbrC.e imn
iissdS.lglteer mi ueqnspu ttpu
osu olscrl irtaln,nfeemsigdaee
dmiecu rto eslfatrh ustelP.co,islci,istnnv,aslo ir oeeqenle sra
cnmru dsslo lvteol,ue irtsmvV.cocnmuiA.ort,aymnn,irpe amterf,ue aeesF.oerttrpanclmlbte atrh
uiufli aar eealN.sa o nnteolnee tl nciiaruecso tm i oo up eo

Sample input:_

decode
Lrmismdlrstae,cnette dpsigei.Ana
are ucnnmsa ul gtun cns acbspaer.Vsiuu aii otio rs uc rtmts
emnu ,sme n oum c otr lqa e
ri iau upsnqe are e,mli e,rtu e,mui.Pletsu rsoc,mli c eeai d aui
n ri elneqepaer ei ttro.Nn uso,pd  insi lied ul upsutie e,eimdvluaetri eu tda.Pasn iua e ucptei nsm uaiu i mtac.Pletsu osceur
rspaer gsa rsiu,nqens utrnla gtvlta ltdiqi otr nsm uc hnu nea
uc oe o ei tloplia otio.
uaiu utscnu do etblmaiicn,un tmti aiu,nb nmitru ei,i rvd eepd
gttlu.Dncncun.Pletsu itm ul i mtflsi immlsaautie.Cmsci aou eaiu tmgi i atretmne,nseu iiuu u.Ssedsea as.Mui e oe.Mriu i ul aiii ulmns eu,vhcl uts lni t lqa n ih uc
ih ul lacre au tm.Nmpeim upnis
acbsns ulo e ucjso otio t olctdne,tmo t ets
Mui cusn ut o our lacre,tlu arsbadtnb,lcu lrce au otra ei.Ponsgti rivlrss elneqefuitlbri ei.Sdutie,tri o eprdcu,ea au osqa otr
i mteetsmgasmnndi oe osqa etsnclgl.Ca lacre eee eu.Vvmsfigla reetsdqa.Dnctri ups odmnu
t icdn t osqa t um uaiu tsm hslu
ets etblmonr eeai ei.Nlaeets reetgaia ttniutdlri do iau
aii.anclsmvV.iod oo ndci U.dvr nsaP.asg
lu tlvstnnvear uuisV.uclsleaP.e ertbrC.aq,utuenc,atuint,umteinc,irtspu eo mu e nsaP.linr
uai stmu dprpomlusr aui
e ucltuenccnD.u o e na asg eats,orttuencscltr mti omtnnspu scrl
e slfstoo age ustelP.ui e costia
ir tlvc ortsclsiitustu hi inl
iumsle rpomlueespnnosj,amcasra
.ucl,erpe t
iuiils,arttrp,tu nndS.e eli uiufesdesS.utr a i asclrpomlualN.bnesF.bn,imuia,etdab,uclauie eqnii
alN.slcfalN.mt bo mrlcnsra asmc
sinpu smslcdrrtca sto niurpsdsna
esbtnpeqtnsio u scrl duea add ie
eatsalN.ucdeqenle ar e eo sle eeee dpaiagn slfmden iehi sbpdsta
uar gispd uuisV.ioego uclrtbrC
rttrprnvu e atlvnncnD.nnc tascoresF.e I.ortsu u ietpuo
ee,lu ocaii ue eqtitsteeatrh oe,ettenceqenle ur eatsrtbrC.e imn
iissdS.lglteer mi ueqnspu ttpu
osu olscrl irtaln,nfeemsigdaee
dmiecu rto eslfatrh ustelP.co,islci,istnnv,aslo ir oeeqenle sra
cnmru dsslo lvteol,ue irtsmvV.cocnmuiA.ort,aymnn,irpe amterf,ue aeesF.oerttrpanclmlbte atrh
uiufli aar eealN.sa o nnteolnee tl nciiaruecso tm i oo up eo

Sample output:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean
laoreet nunc non massa. Nulla eget urna ac nisl faucibus
pharetra. Vestibulum lacinia porttitor eros. Fusce erat metus,
fermentum a, semper in, nonummy ac, tortor. Aliquam nec
orci. Vivamus turpis neque, laoreet vel, mollis sed, rutrum nec,
mauris. Pellentesque eros orci, mollis ac, venenatis id, iaculis
in, orci. Pellentesque pharetra felis et tortor. Nunc euismod,
pede a dignissim eleifend, nulla turpis ultrices leo, euismod
vulputate turpis neque ut diam. Praesent ligula. Sed suscipit
enim in sem. Curabitur sit amet arcu. Pellentesque consectetuer,
eros pharetra egestas tristique, neque nisi auctor nulla, eget
volutpat elit dui quis tortor. In sem. Fusce rhoncus ante ac
nunc. Donec non velit at leo pulvinar porttitor.

Curabitur luctus congue odio. Vestibulum adipiscing, urna ut
mattis dapibus, nibh enim interdum felis, in gravida pede pede
eget tellus. Donec nec urna. Pellentesque dictum. Nulla sit amet
felis id diam malesuada ultrices. Cum sociis natoque penatibus et
magnis dis parturient montes, nascetur ridiculus mus. Suspendisse
ac massa. Mauris nec lorem. Morbi ut mi. Nulla facilisi. Nullam
nisi neque, vehicula luctus, blandit et, aliquam in, nibh. Fusce
nibh. Nulla ullamcorper lacus at mi. Nam pretium. Suspendisse
faucibus nisl eu leo. Sed nunc justo, porttitor at, sollicitudin
et, tempor et, lectus.

Mauris accumsan, justo non posuere ullamcorper, tellus mauris
blandit nibh, luctus ultricies lacus tortor ac velit. Proin
sagittis orci vel risus. Pellentesque feugiat lobortis felis. Sed
ultrices, turpis non tempor dictum, erat lacus consequat tortor,
sit amet egestas magna sem non dui. Donec consequat lectus nec
ligula. Cras ullamcorper pede eu metus. Vivamus
fringilla. Praesent sed quam. Donec turpis turpis, condimentum
ut, tincidunt at, consequat ut, quam. Curabitur et sem. Phasellus
lectus. Vestibulum ornare venenatis velit. Nulla
egestas. Praesent gravida. Ut tincidunt dolor id odio. Vivamus
lacinia.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid680.09342008/02/07 21:18:340B / 32B / 33B
2yvl970.17362008/02/11 06:49:120B / 51B / 44B
3flagitious1410.16832008/02/09 00:45:310B / 76B / 45B
4tabasa2550.08092008/02/07 06:15:4322B / 113B / 96B

Perl _

RankUserSizeTimeDateStatistics
1ySas760.09082008/02/11 15:35:551B / 25B / 47B
2Mithran910.28192008/02/21 03:12:120B / 38B / 52B

Python _

RankUserSizeTimeDateStatistics
1Defenestrator1060.26682008/02/11 06:37:423B / 51B / 48B
2hirose1080.04472008/02/19 12:35:280B / 52B / 52B
3kt3k1080.12752008/02/19 16:06:580B / 60B / 43B
4kt3k830.28672008/03/03 08:47:190B / 43B / 37B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1490.30712008/02/28 12:55:240B / 84B / 55B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr2032.02952008/02/17 06:14:440B / 148B / 41B
2murky-satyr1622.24472008/03/30 13:23:100B / 121B / 32B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr1291.00282008/06/07 04:20:140B / 66B / 60B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1510.17772008/06/19 23:02:340B / 93B / 43B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr2120.42092008/02/17 05:21:180B / 121B / 80B
2murky-satyr1462.27782008/06/27 03:12:550B / 93B / 44B

Forth _

RankUserSizeTimeDateStatistics
151b1620.21162008/05/20 23:19:270B / 113B / 9B

BASIC _

RankUserSizeTimeDateStatistics
1yt1980.10142008/02/18 10:35:300B / 117B / 65B
2*yuko*1310.02422010/05/20 23:01:220B / 79B / 45B
3pooq1940.07922009/04/27 12:54:490B / 114B / 63B

Erlang _

RankUserSizeTimeDateStatistics
151b2240.68412008/02/21 19:08:360B / 107B / 113B

J _

RankUserSizeTimeDateStatistics
1I., S.420.11602011/05/17 12:08:260B / 11B / 29B

C _

RankUserSizeTimeDateStatistics
1Purika1210.02702008/02/13 07:49:010B / ?B / ?B
251b1210.03552008/02/20 23:20:550B / 59B / 62B
3hinoe1250.02162008/02/13 01:48:490B / 57B / 68B
451b1160.05312008/02/21 18:36:400B / 60B / 55B

D _

RankUserSizeTimeDateStatistics
151b1520.01792008/02/21 18:30:390B / 93B / 55B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1240.09672008/02/08 23:08:580B / 79B / 33B
2m.ukai1560.11952008/02/12 11:26:590B / 91B / 49B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa970.24202008/02/09 13:49:200B / ?B / ?B
2teebee(same here)880.08782011/06/12 06:32:360B / 46B / 35B
3ehird(Shamelessly based on notogawa's.)910.08482011/01/05 04:34:053B / ?B / ?B

Ada _

RankUserSizeTimeDateStatistics
1D2960.07572008/02/20 12:20:530B / 187B / 88B

AWK _

RankUserSizeTimeDateStatistics
1nn1060.04502008/06/24 23:23:110B / 48B / 54B

sed _

RankUserSizeTimeDateStatistics
1emoken1141.06772008/02/07 19:24:410B / 25B / 76B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1120.41092008/02/08 22:07:4044B / 38B / 27B
2yshl1850.41852008/02/08 22:07:160B / 129B / 32B

Brainfuck _

RankUserSizeTimeDateStatistics
1nuko700.11142008/02/07 12:05:330B / 0B / 70B

GolfScript _

RankUserSizeTimeDateStatistics
1irori350.26752008/02/11 21:30:160B / 15B / 20B

gs2 _

RankUserSizeTimeDateStatistics
1whio250.17822017/03/15 01:21:4613B / 4B / 3B

Unlambda _

RankUserSizeTimeDateStatistics
1irori1840.07592008/02/10 23:47:180B / 77B / 107B
2irori1420.06942008/03/15 20:07:160B / 56B / 86B

Lazy-K _

RankUserSizeTimeDateStatistics
1irori7660.88532008/02/13 22:57:480B / 392B / 374B
2irori7570.85182008/03/15 11:12:290B / 388B / 369B

Universal Lambda _

RankUserSizeTimeDateStatistics
1irori510.38952008/12/28 00:51:5836B / 7B / 7B

z80 _

RankUserSizeTimeDateStatistics
1kodera371.22002008/02/08 03:56:4821B / 5B / 8B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr580.42832008/09/11 15:05:150B / 24B / 31B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr998.49392008/03/30 13:36:270B / 59B / 36B

Language Ranking_

RankLangUserSizeScore
1gs2whio2510000
2GolfScriptirori357142
3z80kodera376756
4JI., S.425952
5Universal Lambdairori514901
6gorubymurky-satyr584310
7Rubyleonid683676
8Brainfucknuko703571
9PerlySas763289
10Pythonkt3k833012
11Haskellteebee(same here)882840
12Groovymurky-satyr992525
13AWKnn1062358
14Postscriptyshl(bin)1122232
15sedemoken1142192
16C51b1162155
17OCamlksk1242016
18JavaScriptmurky-satyr1291937
19BASIC*yuko*1311908
20Unlambdairori1421760
21Smalltalkmurky-satyr1461712
22Common LISPkozima1491677
23Luamurky-satyr1511655
24D51b1521644
25Iomurky-satyr1621543
26Forth51b1621543
27Erlang51b2241116
28AdaD296844
29Lazy-Kirori757330

return top