sum of subsequences by henkma

import List
m@main=do l<-getLine;print$sort[x+a|a:b<-tails$map read$words l,x<-b];m

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

download

return to the top page