3 ms·
I think your problem description is missing something; otherwise n1 = n2 = n3 ... = n[m-1] = 1, nm = n - m + 1 is a trivial solution.
by cperciva 18y ago
I think your problem description is missing something; otherwise n1 = n2 = n3 ... = n[m-1] = 1, nm = n - m + 1 is a trivial solution.
- cperciva 18y agoEdit: slices should be of distinct values. In that case, [1, 2, 3, ... m - 1, n - m*(m-1)/2] is a trivial solution.