word block by nanayaT

a=gets.split(' ');99.times{|i|a.size.times{|j|a[j].gsub!(/./,' ') if a[j].size==i};break if (b=a.join(' ').rstrip).match(/^ *$/);puts b}

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

download

return top