Levenshtein Distance Sort FIXED

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

Sort all lines according to their corresponding Levenshtein Distance to the first line.
-- twobit

Options

exec is denied

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

Sample input:_

golf
ofYi
goolGA
gof
golfs
gfHr
gol
gl
gwGhoNlf
ol
golQf

Sample output:

golf
gof
golfs
gol
golQf
gl
ol
goolGA
gfHr
ofYi
gwGhoNlf

Sample input:_

Honorificabilitudinitatibus
THnoriTQfiabiXtthdiitatsiIFbs
rHonorWfiuabgiljuUdiniatXbeusU
HonrifDicabilituZdinitatibust
wnortiKcbiltdinyiFtRatiuO
onortNifgiabliuWNintaiusK
HnoWfOicabikhntUtjbub
HoWhEoicabiVliotudniFtmauy
XonrifTiilitudfinPaltiufs
qHoneUorijficbOlituBdinitatiZus
Honorificabilitudintatbus
HonoYrficailudnjitmabuT
HdnorNiofCucabFiwtiitaEtiTb
sRonodHifcubituodiiLtAibYkFuvsJn
HEonorificailitudinitatibus
HrfiblZiLintYaBttiBs
HuonorificabiliFtuHdiitibues
pHonifiaSwbmiltnUuIdGinXiaGiQtyuSs
HonozicabilDitudiitatibus
LHonrificaUiletudBtaiJtPqtus
onorfcabdilKBSitcGudLinttidibwTkus
HonoCfiailtudinimtatibus
HonorPifHicabVnlitWMiqdiitfMatib
Hnorfcalitudinitib
qHonorfiailitudJinaibus
orficXabilitjMHuqhziHciXdtatibus
HonLoCrcifilcbulitudinitatibfus
Hoorificabilitudinttibs
HnlorifcabilblituiunittibPs
HonoHificaiituditatibusJ
HoPrficaaPbiQsclTigtudipnimtRatibus
nnHHnoOriiabiliujiitbaims
HJonrificatiltuinSitatibs
Hnworrificpbilitudintatibus
HBYonVoTablitKuitptQlius
HtonorPiRficatbilituXdiUnittibus
Honorfcabilituinitatibus
HonorificabilitudVinitatibus
Honorificabilitunitatibs
Honoreificabilitudinitatibus
ooiOfcbilBudtigapittbgtus
HonodrVifijcabiiXoZnitis
HonoriiicBablitdnRnSitJatb
Honifcabilitudinitatibus
HnToifipWcailiuuwdiFlnijitatib
JnoiGicabpeGliunitzatciVusgWBrBsT
HRonoTrificabilkituiniXtkatibs
HoBnorifcabilictudinitatiblu
HonorfibiPflitudiitatibu
HnorificabilitTjuinatibPs
HonnorificailitdinitibMus
HnoificailituinitibusSn
HonXoNrifiecaBlbeilitudinitanibu
HonLorificfatudIiityetius
wnoriicCaiiERVudinijtiebs
HooBedlrguiLfOcbilwtuovttiBbu
Hooriicablituinitibust
Honorificailitudinitatibus
QHoorhifcSbGdliLtudniMtaXuosv
HoxsOnuAorifcayiittUuintaktnibu
HonoribankbilyiUyudnitdatKbrs
oQnmorriCcnwLBiIcqVbiliQLudiiutatiybs
HoOHnoiYficFabliudeinstEeiKbufs
HonoficgaKbkiitudinLtaXtiju
iNVnorfGicabiluinittnLu
SHnomificaetdiniabibul
HonorificQiiuimhhtbus
HFjenorifiXcabliuRcdniFtnmUeaibus
Honoficabilitudinitatibus
SHnorificbiPXtdnatibsS
HnvicaHblituzdintiWbuPs
HIonorificabilitudinitatibus
Honorificaiiibtudiniatibus
onortiabilitdiniitZtibus
noritaiyHlntudnitt
HonorkificabIkitudiOitZs
bonificanbtlibudiEnwatipbs
HonxgoWriNficabiylitudiSniatus
HonorificabilitzudinEitaatibUus
HMIBoriGogftgclituXuiitaPtb
XxHonoorerifiEscabZiIlitdionatULus
HonorGFPificabiztuBinitvatius
HonorifiPicabiliKtudinitatibs
OHorcabblitdittbuEq
HoTnrefiaituSiDnitju
HonorifficabilitudinFitatibuKvfs
oMnorificabilitudFikitatiSbvus
HnorZMTalitdinttgiLbus
Hoorifkicabilitudeitatibus
HonorQuvfiRbilitudihnLittkbt
onoriccIhgFbfPiWludaibu
HonOroiiInilmtdintatsdD
HonVorHificabilZiftudinipatibus
onboriVfqilIlaitLudTiFnitahtuibLs
HooDFifMpcazbMYlsdintaBtubzu
HonorificabilxituPdinitatibu
HEorifGliacaTilituoinEWitatibuis
HConZrifibiFliEXQudinitatiDQ
HaonorificanbilVitudinitaibsD
onIoRiicabiliwttudinittibsi
HonrificLiHlitudingtatibuos

Sample output:

Honorificabilitudinitatibus
HonorificabilitudVinitatibus
Honoreificabilitudinitatibus
Honorificailitudinitatibus
HIonorificabilitudinitatibus
Honorificabilitudintatbus
HEonorificailitudinitatibus
Honoficabilitudinitatibus
Honorfcabilituinitatibus
Honorificabilitunitatibs
Honifcabilitudinitatibus
HonorificabilxituPdinitatibu
HonrifDicabilituZdinitatibust
Hoorificabilitudinttibs
Honorificaiiibtudiniatibus
HonorificabilitzudinEitaatibUus
HonorifiPicabiliKtudinitatibs
Hoorifkicabilitudeitatibus
HonozicabilDitudiitatibus
Hnworrificpbilitudintatibus
HoBnorifcabilictudinitatiblu
HonorifficabilitudinFitatibuKvfs
HonVorHificabilZiftudinipatibus
HonoCfiailtudinimtatibus
HonoHificaiituditatibusJ
HonnorificailitdinitibMus
oMnorificabilitudFikitatiSbvus
HaonorificanbilVitudinitaibsD
HonrificLiHlitudingtatibuos
HuonorificabiliFtuHdiitibues
HonLoCrcifilcbulitudinitatibfus
HJonrificatiltuinSitatibs
HtonorPiRficatbilituXdiUnittibus
HRonoTrificabilkituiniXtkatibs
HonorfibiPflitudiitatibu
HnorificabilitTjuinatibPs
Hooriicablituinitibust
onortiabilitdiniitZtibus
qHoneUorijficbOlituBdinitatiZus
qHonorfiailitudJinaibus
HnoificailituinitibusSn
HonXoNrifiecaBlbeilitudinitanibu
HonorGFPificabiztuBinitvatius
Hnorfcalitudinitib
HnlorifcabilblituiunittibPs
HonorkificabIkitudiOitZs
HonxgoWriNficabiylitudiSniatus
onIoRiicabiliwttudinittibsi
HonoficgaKbkiitudinLtaXtiju
HonorificQiiuimhhtbus
HEorifGliacaTilituoinEWitatibuis
rHonorWfiuabgiljuUdiniatXbeusU
HonoYrficailudnjitmabuT
HonoriiicBablitdnRnSitJatb
HonLorificfatudIiityetius
HonoribankbilyiUyudnitdatKbrs
SHnomificaetdiniabibul
SHnorificbiPXtdnatibsS
bonificanbtlibudiEnwatipbs
HonorQuvfiRbilitudihnLittkbt
HConZrifibiFliEXQudinitatiDQ
XonrifTiilitudfinPaltiufs
LHonrificaUiletudBtaiJtPqtus
HonodrVifijcabiiXoZnitis
wnoriicCaiiERVudinijtiebs
iNVnorfGicabiluinittnLu
HnorZMTalitdinttgiLbus
THnoriTQfiabiXtthdiitatsiIFbs
wnortiKcbiltdinyiFtRatiuO
onortNifgiabliuWNintaiusK
HoWhEoicabiVliotudniFtmauy
HonorPifHicabVnlitWMiqdiitfMatib
HoPrficaaPbiQsclTigtudipnimtRatibus
nnHHnoOriiabiliujiitbaims
HoOHnoiYficFabliudeinstEeiKbufs
HnvicaHblituzdintiWbuPs
HonOroiiInilmtdintatsdD
HnoWfOicabikhntUtjbub
HnToifipWcailiuuwdiFlnijitatib
OHorcabblitdittbuEq
HoTnrefiaituSiDnitju
HdnorNiofCucabFiwtiitaEtiTb
orficXabilitjMHuqhziHciXdtatibus
HBYonVoTablitKuitptQlius
QHoorhifcSbGdliLtudniMtaXuosv
HoxsOnuAorifcayiittUuintaktnibu
HFjenorifiXcabliuRcdniFtnmUeaibus
noritaiyHlntudnitt
XxHonoorerifiEscabZiIlitdionatULus
onboriVfqilIlaitLudTiFnitahtuibLs
onorfcabdilKBSitcGudLinttidibwTkus
ooiOfcbilBudtigapittbgtus
HooDFifMpcazbMYlsdintaBtubzu
HrfiblZiLintYaBttiBs
HMIBoriGogftgclituXuiitaPtb
onoriccIhgFbfPiWludaibu
HooBedlrguiLfOcbilwtuovttiBbu
sRonodHifcubituodiiLtAibYkFuvsJn
pHonifiaSwbmiltnUuIdGinXiaGiQtyuSs
oQnmorriCcnwLBiIcqVbiliQLudiiutatiybs
JnoiGicabpeGliunitzatciVusgWBrBsT

Sample input:_

main(){puts("Hello, world!");}
mainl(){pZts(Hello uorl!"t)b;
ing({pus("eloO oord!)rN}}
Totma,i)GTutl(ht"HewolldH"s);}
main){putrs("fellb, woYlldY");o}
mXan(s()nHepll!n word!)k;b
aBin(){,puts("ello,world!""();}
main(){puts("Hello worl,d!")l;}
main(){puts"fHelnso, wrld!")
min(){pts("HeHllmo worlFd!";}
mfaimn){AEputs("HSBe, oiEld;);
k(OlKpaus("Hll, wol!)inoi
min()!{np("Hloj,qyrlV!"r )}H
main){pulsy"HemlK, world!r!
 main({puts("Heo,; wor!")Y;}
Smailnw())){ptgQdFf("ielDo,r wrl !")}
mzErainA(r){XputMIsX("zHello, worl!d!")uA;}G
man(){puts("Hello, world!");}
mTain(){puts(Hllp, woGr;n!Ww")w;}eTs
main()puts("ello, world!");}
aiEgn){putRJHello, wld!);}
maFin(){yOput("HeYlol,my woral!");M}
main(){puts("ello wol!");}
m"n({u{t(Hlio MlolrB" 
main(){puts("Hello, world!"),;
ln()pLvNs"HeRrldtWl orl")
mYaLin()t{ptyV("el, ;world!");JT
myai){puzfLtxs{L("HllEowobd!")l;e}
meauvV({T(Hs("pHell,( orl!w)}
(main{upsq("PHell, worlid");
mnrnaiZ;b(J{ut(x"MHoG, wrl!"} 
mrinCw{T){pu(Hlo wo rld!"lle}
Aaumain(){pus(B"Hell, wrpl!s");}
mai(){uvEts"Heltlo, worRlT!")mo;}
KCi(){Bus("HgeIll,HorlNGd"}
mHaolin({p{uWs)o(Dyw"VwHbellHonM,oQxrld!
aiH()ps("elk!lo, wod!")
main(){puts"Hello, world!");}
mRin(){puts("HeoworlV!l");}
main(){pts("",ello), worldU!");}
maimnjo(w){utRs(rTexlozelQ, H}wor{ld!)"e)
mp(){K("VmeHl rlGxG";}
idpn(){puts("pHellro, w orlmdW!";}
lmraiTnl(E{nuMt("H(e}AUlo,zord!")c
mainw(){pu("ll, orld!s);}
mKfQwaiNJl("){osptsz("Hello, wouldQ!h;}o
min(puts("DUHelo,wlord");}
main(){puts(ell, woGrld!")}
mMa({ptgs(xDHAll, rld!"}
main(){puts("Hello, world!");
m(s)H{p}tsmo("Hello, wcorldH!ra"q");k
mainH({uts("Hel fold!");}
EaVT(p)ptl(Hel wozrdv!";H! }
)aQn(){paKukrtvK(HsehTlo)ld);}
ainn)uDts("Hello, worl!");}
man(kput}s("Hel}aP Nworldu!");}
masVin)pubts(b"Helwl, orld!"bW);}o
in(){puts("Hello,dI world!");}
maiBn(){putf("sHe(l,  od!";}
mui()om{Vputs("Hell,oorld!n";;
aiB)UPtl(E"NHelln,"wolX);}
lmain(){putHs("Hello, world!");}
mainE{out("zHewllo, o)rld !");}
mliFYy(MlJ{puts"HsllRo, war)pv();}
main(){(jpButs(("qHel,o,wBXorlds!")W;
mainn({putsl"el)ol, jwrqldA!)}
ma(){Autvu("Hell,F rldd!"rDL;X}
a!in()Cpu"s("Helo, woorld!"G);}
;Han"(H)puGts("ll,worl"w ;};
in,S{pus" leRlwyorf)lKt!);}
mRia){ppqut()"eloy,doFl!"Z)Pao;r
minqlJ()Q{Xptst(Hell"moo wd"R)Z
miTn({pts{Z(HAl,zworld!);}
aien({puuts(A"ello(K"orldw!t")t;
mTain(pts("ellu,ld!")B
Smai(){utsHello, wpbyold!m")JZ;}
many(){pu"At("Helg,world"h);}
mai(l){pts("cntHcxello, orsd!");}
main"(psV"tHlro wold)
a(t)(")loaLoldl);
miXn){put"GLHelo,worlgd!");}
ai(){p!ts(Hllo, world!");
Rin,()iput("HeWlF{Uo wdu!"}
mainT(){pufsSl("H)ell, old");}d
mai(xnxp()mpunts("HeRllpp Eor");}
maimn(){ltFs("Hll, wofrHdl}
;mai(){puts("Hello, world!");
mawin({utUs("Hello, worid!");}
main(){puts(zHelo, Br!");m
main(){rpusr("Hello, wo,rld!;}
mainlN(B){puts("Hello, w,vorldg;!");}
main(){puts("Hell!o, world!f";}
mai)eX}{pkoukt(ATHdeNllo wor!F")d}}R;D}r
minJ,)h{puts(Belnlo,w"rldI!";}
in{us(ellFo rrt(ld!H")";}l
mma"n()pur(Kp"jrl!")}
ma{uts "Ho,, orld An!F)}
main"(){puts(Hello, wNorld!"T)n;}
main(){pOu("Hell, word!z");U}
maino(){pus(Hell(oh,S world!";}
aZn(){Gputs("kHello, word!")}

Sample output:

main(){puts("Hello, world!");}
man(){puts("Hello, world!");}
main(){puts"Hello, world!");}
main(){puts("Hello, world!");
main()puts("ello, world!");}
main(){puts("Hello, world!"),;
lmain(){putHs("Hello, world!");}
main(){puts("Hello worl,d!")l;}
;mai(){puts("Hello, world!");
main(){puts("Hell!o, world!f";}
main(){puts("ello wol!");}
in(){puts("Hello,dI world!");}
main(){pts("",ello), worldU!");}
main(){puts(ell, woGrld!")}
mawin({utUs("Hello, worid!");}
main"(){puts(Hello, wNorld!"T)n;}
ainn)uDts("Hello, worl!");}
ai(){p!ts(Hllo, world!");
main(){rpusr("Hello, wo,rld!;}
aZn(){Gputs("kHello, word!")}
aBin(){,puts("ello,world!""();}
main(){puts"fHelnso, wrld!")
min(){pts("HeHllmo worlFd!";}
mRin(){puts("HeoworlV!l");}
a!in()Cpu"s("Helo, woorld!"G);}
main(){puts(zHelo, Br!");m
mainlN(B){puts("Hello, w,vorldg;!");}
main(){pOu("Hell, word!z");U}
maino(){pus(Hell(oh,S world!";}
main){putrs("fellb, woYlldY");o}
 main({puts("Heo,; wor!")Y;}
mainw(){pu("ll, orld!s);}
mainH({uts("Hel fold!");}
mainl(){pZts(Hello uorl!"t)b;
main){pulsy"HemlK, world!r!
idpn(){puts("pHellro, w orlmdW!";}
man(kput}s("Hel}aP Nworldu!");}
maiBn(){putf("sHe(l,  od!";}
mainE{out("zHewllo, o)rld !");}
miXn){put"GLHelo,worlgd!");}
aiEgn){putRJHello, wld!);}
Aaumain(){pus(B"Hell, wrpl!s");}
mai(){uvEts"Heltlo, worRlT!")mo;}
min(puts("DUHelo,wlord");}
many(){pu"At("Helg,world"h);}
mai(l){pts("cntHcxello, orsd!");}
mainT(){pufsSl("H)ell, old");}d
maFin(){yOput("HeYlol,my woral!");M}
(main{upsq("PHell, worlid");
mui()om{Vputs("Hell,oorld!n";;
minJ,)h{puts(Belnlo,w"rldI!";}
mYaLin()t{ptyV("el, ;world!");JT
aiH()ps("elk!lo, wod!")
masVin)pubts(b"Helwl, orld!"bW);}o
main(){(jpButs(("qHel,o,wBXorlds!")W;
mainn({putsl"el)ol, jwrqldA!)}
miTn({pts{Z(HAl,zworld!);}
mTain(pts("ellu,ld!")B
Smai(){utsHello, wpbyold!m")JZ;}
maimn(){ltFs("Hll, wofrHdl}
mTain(){puts(Hllp, woGr;n!Ww")w;}eTs
aien({puuts(A"ello(K"orldw!t")t;
mai(xnxp()mpunts("HeRllpp Eor");}
ing({pus("eloO oord!)rN}}
mzErainA(r){XputMIsX("zHello, worl!d!")uA;}G
mMa({ptgs(xDHAll, rld!"}
ma(){Autvu("Hell,F rldd!"rDL;X}
mfaimn){AEputs("HSBe, oiEld;);
meauvV({T(Hs("pHell,( orl!w)}
mrinCw{T){pu(Hlo wo rld!"lle}
KCi(){Bus("HgeIll,HorlNGd"}
m(s)H{p}tsmo("Hello, wcorldH!ra"q");k
aiB)UPtl(E"NHelln,"wolX);}
mliFYy(MlJ{puts"HsllRo, war)pv();}
main"(psV"tHlro wold)
Rin,()iput("HeWlF{Uo wdu!"}
mXan(s()nHepll!n word!)k;b
;Han"(H)puGts("ll,worl"w ;};
ma{uts "Ho,, orld An!F)}
min()!{np("Hloj,qyrlV!"r )}H
Smailnw())){ptgQdFf("ielDo,r wrl !")}
myai){puzfLtxs{L("HllEowobd!")l;e}
lmraiTnl(E{nuMt("H(e}AUlo,zord!")c
mKfQwaiNJl("){osptsz("Hello, wouldQ!h;}o
in{us(ellFo rrt(ld!H")";}l
mma"n()pur(Kp"jrl!")}
k(OlKpaus("Hll, wol!)inoi
m"n({u{t(Hlio MlolrB" 
mp(){K("VmeHl rlGxG";}
EaVT(p)ptl(Hel wozrdv!";H! }
in,S{pus" leRlwyorf)lKt!);}
a(t)(")loaLoldl);
Totma,i)GTutl(ht"HewolldH"s);}
ln()pLvNs"HeRrldtWl orl")
)aQn(){paKukrtvK(HsehTlo)ld);}
mRia){ppqut()"eloy,doFl!"Z)Pao;r
minqlJ()Q{Xptst(Hell"moo wd"R)Z
mnrnaiZ;b(J{ut(x"MHoG, wrl!"} 
maimnjo(w){utRs(rTexlozelQ, H}wor{ld!)"e)
mai)eX}{pkoukt(ATHdeNllo wor!F")d}}R;D}r
mHaolin({p{uWs)o(Dyw"VwHbellHonM,oQxrld!

Ranking

Perl _

RankUserSizeTimeDateStatistics
1whio1280.86242013/06/27 00:30:240B / 53B / 75B
2teebee1551.29622013/06/21 15:42:100B / 51B / 102B
3whio(test1)1230.97082013/06/29 01:02:330B / 52B / 71B
4test1(tails)1241.06172013/06/27 17:31:420B / ?B / ?B
5tails (whio)1250.95992013/06/27 04:18:390B / 54B / 71B

Python _

RankUserSizeTimeDateStatistics
1leonid1740.24942013/06/13 09:29:470B / 93B / 61B
2hallvabo1770.27052013/06/13 15:35:250B / 93B / 66B
3rolf1990.29712013/06/14 06:16:340B / 111B / 61B
4test6000.28682013/06/13 03:52:5633B / 258B / 141B
5leonid1730.31322013/06/27 05:15:400B / 93B / 62B

PHP _

RankUserSizeTimeDateStatistics
1teebee780.07052013/06/17 16:42:470B / 41B / 37B

J _

RankUserSizeTimeDateStatistics
1I., S.790.24282013/06/23 19:54:390B / 17B / 59B
2I., S.620.24822013/06/29 20:49:450B / 9B / 53B

K _

RankUserSizeTimeDateStatistics
1teebee600.12472013/06/24 04:27:350B / 18B / 41B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1830.66502013/06/25 18:04:370B / 96B / 82B
2I., S.1910.34692013/06/26 12:16:130B / 112B / 71B
3I., S.(faster)2020.06142013/06/25 21:27:470B / 124B / 69B
4rolf5120.38442013/06/14 18:55:160B / 327B / 127B
5I., S.(+henkma)1660.77292013/06/29 20:48:490B / 91B / 69B
6I., S.1900.35692013/06/29 07:51:250B / 111B / 71B

GolfScript _

RankUserSizeTimeDateStatistics
1tails1870.20712013/06/15 01:55:3784B / 59B / 42B

Language Ranking_

RankLangUserSizeScore
1Kteebee6010000
2JI., S.629677
3PHPteebee787692
4Perlwhio(test1)1234878
5HaskellI., S.(+henkma)1663614
6Pythonleonid1733468
7GolfScripttails1873208

return top