Maximum Cyclic Segment Sum by flagitious

#!ruby -pa
d=$F*b=2
$F.map{s=0
d.shift
$F.fill{|y|$_=d[0..y]*' '+$/%b=s if b<s+=d[y].to_i}}

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

download

return to the top page