m@main=getLine>>=putStrLn.unlines.f.map read.words>>m f x=unwords(map show x):sum x`take`f(map abs$zipWith(-)x$tail x++x)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page