SP685 SEQPAR - Partition the sequence
Description
Given an integer sequence containing n elements (numbered from 1 to n), your task is to find the minimum value M so that we can find k + 1 integers 0 = p(0) < p(1) < p(2) < ... < p(k-1) < p(k) = n, such that for any i from 0 to k - 1, the sum of elements from postition p(i)+1 to postition p(i+1) is not greater than M.
Input Format
The first line of input contains the number of test cases nTest (1
Output Format
For each test case write the minimum number M in a separate line.