Problem U
Big Boxes
Brandon Greg Jr. is moving to the United States to double
his salary. He has
Input
The first line contains two space-separated integers
The second line of input contains
Output
The only line of output should contain a single integer, denoting the minimum possible weight of the heaviest box.
Sample Input 1 | Sample Output 1 |
---|---|
7 2 3 1 1 3 9 5 2 |
16 |
Sample Input 2 | Sample Output 2 |
---|---|
7 4 1 2 8 3 5 2 7 |
9 |
Sample Input 3 | Sample Output 3 |
---|---|
7 5 1 2 8 3 5 2 7 |
8 |