Levenshtein Distance Sort

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.

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:

olf
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

return to the top page