Squares Fixed by shinh

gets p
gsub(/ /,'  ')
gsub('.','|_')
gsub(/_( |$)/,'_|')
['',*$_].zip([*$_]){|a,b|o=''
99.times{|i|o<<(b&&b[i]==95?95:a.chop[i]||32)}
puts o.rstrip}

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

download

return to the top page