这里,最大和子集是给出最大和的k个子集之一,例如: arr = 10,5,3,7和k=2在k个子集中划分arr的可能方法是
{10,[5,3,7]},{[10,5],[3,7},{[10,5,3],7}
和
{[10,5],[3,7} is the optimal one.
编辑:相当于https://www.codechef.com/DI15R080/problems/MINMAXTF
https://stackoverflow.com/questions/39673898
相似问题