main=interact$k.init k[]=[] k x=x++'\n':k([abs$read[a]-read[b]|(a,b)<-zip x$tail x]>>=show)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page