Description: Input The input contains blocks of two lines. The first line contains the number of sticks par ts after cutting, there are at most 64 sticks. The second line contains the ains the lengths of those parts separated by the space. The last line of the file contains zero. O The output should utput contains the smallest p ossible length of original sticks, one per line. Sample Input 9 5 2 1 5 2 1 5 2 1 4 1 2 3 4 0 Sa mple Output 6 5
To Search:
File list (Check if you may need any files):