Sort by Length for OCaml Golf Competition by inaniwa

strcmp();s[999][9];i;main(k,t){for(;gets(s+i)?qsort(s,i++,36,strcmp):strlen(t=++k%i+s)-k/i?k<<19:puts(t););}

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

download

return to the top page