Sort by Length for OCaml Golf Competition by nn

for(a=[];l=readline();)a.push([l[-1]*5,l])
for(i in a.sort())print(a[i][1])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page