main=interact$unlines.scanl1(%).lines p%q=max((p++p)#q)$p#cycle q []#_=[] x#(y:z)=y:z#x
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page