6N plus minus one by teebee

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

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

download

return to the top page