Polynomial Sequences by recursive

while 1:
 v=map(int,raw_input().split());t=0
 while v:t+=v[-1];v=[b-a for a,b in zip(v,v[1:])]
 print t

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

download

return to the top page