Maximum Cyclic Segment Sum by yamaya(embed)

a=(5-6 "4-15 49-87 29-59 7-53 31-44" "6 5-7 4-8 7 9-16 5-6 9-12 6-9 4-11 3-7")
for i in ${a[$[$$/3%3]]};do
read s
echo $s $s|cut -d\  -f$i
done

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

download

return to the top page