Branching Computations by Da

while 1:
 v=[0L]
 for i in raw_input():v=[v[1:],v[:-1],[sum(v)],[reduce(long.__mul__,v,1L)],sum([[j-1,j+1]for j in v],[])][ord(i)/2%5]
 print`v`.replace('L','')

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page