Factorization corrected by henkma

f[a,b]=unwords[show$floor x|x<-a/2:[0..a],b==x*(a-x)]
m@main=getLine>>=putStrLn.f.map read.words>>m

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

download

return to the top page