6N plus minus one by jamesaxl

while 1:r=input();a="%d = 6 * %d - 1"%(r,(r+1)/6)if r%6-1 else"%d = 6 * %d + 1"%(r,(r-1)/6);print a

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

download

return to the top page