比如{3,2,4,3,6} 可以分成 {3,2,4,3,6} m=1; {3,6}{2,4,3} m=2 {3,3}{2,4}{6} m=3 所以m的最大值为3. bool isShare(int* a, int* group, int len, int m, int groupSize, int groupId, int curSize) { if (curSize == 0) { groupId++; curSize = groupSize; if (groupId == m + 1) {…