'\x01\x02\x04\x08\x173f'.bytes{|e|puts$0=(gets*d=9).gsub(/ ?/){($0*2)[7-d-=1]}[1,e]}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page