6N plus minus one by jamesaxl

def c v\x0d
puts "#{v} = 6 * %s 1" % ((v-1) % 6 == 0? "#{(v-1)/6} +" :"#{(v +1)/6} -")\x0d
end\x0d
while r=gets do\x0d
c r.to_i\x0d
end

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

download

return top