6N plus minus one by teebee(clock)

loop:s=hear();n=s.to_i()+1;say s+" = 6 * "+(n/6).to_s()+[" - 1",0," + 1"][n-n/3*3]

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

download

return to the top page