Ejection simplified by nn

for(;l=readline();)print(/ /(l)?l[0]+Array(l[-1]-1).join(' ')+l.replace(/ |.$/g,''):l)

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

download

return to the top page