#lx003. 星际物流的货物分装
星际物流的货物分装
##Title Description
The interstellar transport ship needs to transport n containers containing rare minerals to k space stations. Each container has a value of and must be loaded continuously into different transport compartments in order. To prevent overloading of individual compartments, it is necessary to design an allocation scheme that minimizes the maximum cargo capacity among all compartments.
Input format
The first line consists of two integers, and
The second line contains integers representing
Output format
Minimum and maximum achievable cargo capacity
Example
5 3
4 2 4 5 1
6