m@main=getLine>>=print.f.map read.words>>m f[a,b]=sum[(a-i)*(b-i)|i<-[0..min a b]]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page