Gottfried Sequence by clock

a=[(-1.)**n/(n-~n)for n in range(input()**3)]
while 1:print"%.15g"%sum(a[:input()])

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

download

return to the top page