find minimum cyclic parts by mauke

m@main=do s<-getLine;putStrLn$s#s;m
s#(a:t)|s++t==t++s=[a]|0<1=a:s#t

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

download

return to the top page