You must learn the classic Dynamic Programming problems about “Max Sum of the
Subsegment ”. Now you are given a cicle ring which contains n ( 1≤n≤100000 )integers
a1, a2, ... , an with clockwise order. I want to know the “Max Sum of the Subsegment” in the ring.
For each test case, print the case number and your answer.
Case 1: 11
Case 2: 6
Case 3: -1
In the first sample, the max sum is 11, which equals 10 + 1(nth and 1th is adjacent)